# CVE-2021-3801: Inefficient Regular Expression Complexity in prismjs/prism

- Severity: High 7.5 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/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: 2021-09-15T12:40:11.000Z
- Modified: 2026-06-17T04:05:47.697Z
- Also known as: GHSA-hqhp-5p83-hx96
- Weaknesses: CWE-400, CWE-1333
- Assigned by: @huntrdev

## Description

prism is vulnerable to Inefficient Regular Expression Complexity

(As written by CVE List.)

## Affected

- prismjs prismjs/prism: from unspecified up to 1.24.1
- prismjs (npm): before 1.25.0
- prismjs prism: before 1.25.0

## Every score

- @huntrdev: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3801> (advisory)
- <https://github.com/prismjs/prism> (package)

## Sources

- CVE List: [CVE-2021-3801](https://www.cve.org/CVERecord?id=CVE-2021-3801), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hqhp-5p83-hx96](https://github.com/advisories/GHSA-hqhp-5p83-hx96), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3801](https://nvd.nist.gov/vuln/detail/CVE-2021-3801), Public domain, modified 2026-06-17

---

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