# CVE-2021-40660: Regular expression denial of service in Delight Nashorn Sandbox

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-14T13:16:20.000Z
- Modified: 2026-06-17T04:07:13.960Z
- Also known as: GHSA-38j3-6fm8-pfgc
- Weaknesses: CWE-1333
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.javadelight:delight-nashorn-sandbox (Maven): before 0.3.1
- javadelight nashorn_sandbox: 0.2.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/javadelight/delight-nashorn-sandbox/issues/117> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40660> (advisory)
- <https://github.com/javadelight/delight-nashorn-sandbox/issues/117#issuecomment-1564983722> (web)
- <https://github.com/javadelight/delight-nashorn-sandbox/pull/139> (web)
- <https://github.com/javadelight/delight-nashorn-sandbox/commit/b899b8ecad46090fdc042ac7683e1164114a69de> (web)
- <https://github.com/javadelight/delight-nashorn-sandbox> (package)
- <https://github.com/javadelight/delight-nashorn-sandbox/releases/tag/0.3.1> (web)

## Sources

- CVE List: [CVE-2021-40660](https://www.cve.org/CVERecord?id=CVE-2021-40660), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-38j3-6fm8-pfgc](https://github.com/advisories/GHSA-38j3-6fm8-pfgc), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-40660](https://nvd.nist.gov/vuln/detail/CVE-2021-40660), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40660 · Whole record: https://cve.day/CVE-2021-40660.json · Rebuilt by cve.day 2026-11-25T22:58:07.656Z
