Security advisory
Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32723
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:47 UTC · Revision 1
Source evidence
Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.
osv:CVE-2021-32723
Complete source record
{
"id": "df0c18fa3355ef0f67c11f54e8d7447b6688842b7c8daa7a4b5730b651a99e9f",
"url": "https://osv.dev/vulnerability/CVE-2021-32723",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-32723",
"summary": "Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.",
"evidence": "osv:CVE-2021-32723",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-32723",
"aliases": [
"CVE-2021-32723",
"GHSA-gj77-59wh-66hg"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/prismjs/prism",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3432b4b1e4440d6592ed82b6b5b9e72f660e43a8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.24.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.23.0",
"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-32723.json"
}
}
],
"modified": "2026-10-20T10:54:42.823202511Z",
"provider": "osv",
"references": [
"https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg",
"https://github.com/PrismJS/prism/pull/2688",
"https://github.com/PrismJS/prism/pull/2774",
"https://www.oracle.com/security-alerts/cpujan2022.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:application_express",
"extracted_events": [
{
"range": [
{
"fixed": "21.1.4"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-32723",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385966,
"published_at": "2021-06-28T20:15:07.857+00:00"
}