GitHub Advisoryadvisory · npm
GHSA-hqhp-5p83-hx96 prismjs Regular Expression Denial of Service vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2021-3801
- Ecosystem
- npm
- Packages
- prismjs
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2021-09-16
Affected packages
• npm prismjs: < 1.25.0 → fixed in 1.25.0
Description
Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.
Related
Alias · CVE (1)
- CVE-2021-3801 prism is vulnerable to Inefficient Regular Expression Complexity vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness