Advisory

GHSA-hqhp-5p83-hx96

Also known as: CVE-2021-3801

Summary

prismjs Regular Expression Denial of Service vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-20 20:44 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

prismjs

npm · All systems

Affected

  • introduced 0, fixed 1.25.0 (semver)

Fixed versions

1.25.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences