node-prismjs — 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
- node-prismjs
- Affected versions
- 1.11.0+dfsg-2, 1.11.0+dfsg-3, 1.23.0+dfsg-1, 1.25.0+dfsg-1, 1.27.0+dfsg+~1.26.0-1, 1.29.0+dfsg+~1.26.0-1, 1.30.0+dfsg+~1.26.5-1, 1.30.0+dfsg+~1.26.5-2, 1.30.0+dfsg+~1.26.6-1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32723
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:34 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:UBUNTU-CVE-2021-32723
node-prismjs
Fixed versions: Not specified
node-prismjs
Fixed versions: Not specified
node-prismjs
Fixed versions: Not specified
node-prismjs
Fixed versions: Not specified
node-prismjs
Fixed versions: Not specified
node-prismjs
Fixed versions: Not specified
Complete source record
{
"id": "39423f59d611bc792563e2c478743ef33cb334a27bc666dbee849c6a565dbda5",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-32723",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2021-32723",
"products": [
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.11.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.11.0+dfsg-3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.23.0+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.25.0+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.27.0+dfsg+~1.26.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.29.0+dfsg+~1.26.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.29.0+dfsg+~1.26.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.30.0+dfsg+~1.26.5-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.30.0+dfsg+~1.26.6-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-prismjs",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.30.0+dfsg+~1.26.5-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.30.0+dfsg+~1.26.5-2",
"evidence": "/affected/5/versions"
},
{
"value": "1.30.0+dfsg+~1.26.6-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-32723",
"aliases": [
"UBUNTU-CVE-2021-32723"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.11.0+dfsg-2",
"1.11.0+dfsg-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.11.0+dfsg-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.23.0+dfsg-1",
"1.25.0+dfsg-1",
"1.27.0+dfsg+~1.26.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.27.0+dfsg+~1.26.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.29.0+dfsg+~1.26.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.29.0+dfsg+~1.26.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.29.0+dfsg+~1.26.0-1",
"1.30.0+dfsg+~1.26.5-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.30.0+dfsg+~1.26.5-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.30.0+dfsg+~1.26.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.30.0+dfsg+~1.26.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-prismjs",
"purl": "pkg:deb/ubuntu/node-prismjs?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.30.0+dfsg+~1.26.5-1",
"1.30.0+dfsg+~1.26.5-2",
"1.30.0+dfsg+~1.26.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32723.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-prismjs",
"binary_version": "1.30.0+dfsg+~1.26.6-1"
}
]
}
}
],
"modified": "2026-10-17T12:55:46.622239033Z",
"provider": "osv",
"upstream": [
"CVE-2021-32723"
],
"references": [
"https://ubuntu.com/security/CVE-2021-32723",
"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.cve.org/CVERecord?id=CVE-2021-32723"
]
},
"related_cves": [
{
"value": "CVE-2021-32723",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354051,
"published_at": "2021-06-28T20:15:00+00:00"
}