~ / search / GHSA-hqhp-5p83-hx96

GHSA-hqhp-5p83-hx96

prismjs Regular Expression Denial of Service vulnerability

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-3801

Packages

EcosystemPackageAffectedFixed in
npm prismjs < 1.25.0 1.25.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.