High
Security advisory
The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23341
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:39 UTC · Revision 1
Source evidence
The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.
osv:CVE-2021-23341
Complete source record
{
"id": "27aa620eaa88e5acc49afa87a8db1d4bdfb7f1eadfb42186e160e413af367346",
"url": "https://osv.dev/vulnerability/CVE-2021-23341",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23341",
"summary": "The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.",
"evidence": "osv:CVE-2021-23341",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-23341",
"aliases": [
"CVE-2021-23341",
"GHSA-h4hr-7fg3-h35w"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/prismjs/prism",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "88a17b4ff586c8bbd0faf1b1524cee9e039fa580"
},
{
"fixed": "c2f6a64426f44497a675cb32dccb079b3eff1609"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.23.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c2f6a64426f44497a675cb32dccb079b3eff1609"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.22.0",
"v1.21.0",
"v1.20.0",
"v1.19.0",
"v1.18.0",
"v1.17.1",
"v1.17.0",
"v1.16.0",
"v1.15.0",
"v1.14.0",
"v1.13.0",
"v1.12.2",
"v1.12.1",
"v1.12.0",
"v1.11.0",
"v1.10.0",
"v1.9.0",
"v1.8.4",
"v1.8.3",
"v1.8.2",
"v1.8.1",
"v1.8.0",
"v1.7.0",
"v1.6.0",
"1.5.1",
"1.5.0",
"v1.4.1",
"1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.1",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23341.json"
}
}
],
"modified": "2026-10-20T10:54:31.803213971Z",
"provider": "osv",
"references": [
"https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609",
"https://github.com/PrismJS/prism/issues/2583",
"https://github.com/PrismJS/prism/pull/2584",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582",
"https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23341",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385488,
"published_at": "2021-02-18T16:15:14.143+00:00"
}