GHSA-hqhp-5p83-hx96

Suggest an improvement
Source
https://github.com/advisories/GHSA-hqhp-5p83-hx96
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-hqhp-5p83-hx96/GHSA-hqhp-5p83-hx96.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hqhp-5p83-hx96
Aliases
Published
2021-09-20T20:44:48Z
Modified
2023-11-08T04:06:25.064044Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-400"
    ],
    "severity": "MODERATE",
    "github_reviewed_at": "2021-09-16T18:29:46Z",
    "nvd_published_at": "2021-09-15T13:15:00Z"
}
References

Affected packages

npm / prismjs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.25.0