Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1ocWhwLTVwODMtaHg5Ns0Vzg

prismjs Regular Expression Denial of Service vulnerability

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.

Permalink: https://github.com/advisories/GHSA-hqhp-5p83-hx96
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocWhwLTVwODMtaHg5Ns0Vzg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: over 1 year ago


CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Identifiers: GHSA-hqhp-5p83-hx96, CVE-2021-3801
References: Repository: https://github.com/prismjs/prism
Blast Radius: 34.7

Affected Packages

npm:prismjs
Dependent packages: 6,937
Dependent repositories: 218,739
Downloads: 28,538,558 last month
Affected Version Ranges: < 1.25.0
Fixed in: 1.25.0
All affected versions: 0.0.1, 1.1.0, 1.2.0, 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.3, 1.8.4, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.12.2, 1.13.0, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.18.0, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.24.1
All unaffected versions: 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.29.0