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.test.osv.dev/v1/vulns/GHSA-hqhp-5p83-hx96
Aliases
Published
2021-09-20T20:44:48Z
Modified
2023-11-01T04:55:56Z
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
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-09-16T18:29:46Z",
    "nvd_published_at":  "2021-09-15T13:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / prismjs

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-hqhp-5p83-hx96/GHSA-hqhp-5p83-hx96.json"