CVE-2021-40660 is a high-severity (CVSS 7.5) CWE-1333 vulnerability in org.javadelight:delight-nashorn-sandbox. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for org.javadelight:delight-nashorn-sandbox — see the affected versions and patch details below.
Regular expression denial of service in Delight Nashorn Sandbox
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.javadelight:delight-nashorn-sandboxReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in Delight Nashorn Sandbox 0.2.0. There is an ReDoS vulnerability that can be exploited to launching a denial of service (DoS) attack.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.javadelight:delight-nashorn-sandbox | all versions | 0.3.1org.javadelight:delight-nashorn-sandbox:0.3.1 |
Affected Products
nashorn sandboxjavadelightResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.javadelight:delight-nashorn-sandbox, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.javadelight:delight-nashorn-sandbox to 0.3.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-40660 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2021-40660 in your dependencies?
Find it across Maven, including transitive dependencies.