Read the docs
TI-2021-06039 Aliases CVE-2021-23341GHSA-h4hr-7fg3-h35w

Regular expression denial of service (ReDoS) in prismjs

Priority LOW 39CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 5 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.

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.

Why it matters now

EPSS 0.03167 88th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial prismjs: 1.23.0prismjs (npm): 1.23.0Red Hat: 5 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—prismjsbefore 1.23.01.23.0Patch availableCNA
—prismjs (npm)before 1.23.01.23.0Patch availableGHSA-h4hr-7fg3-h35w
  • prismjs Vendor— Affected before 1.23.0 Fixed in 1.23.0 Patch available CNA
  • prismjs (npm) Vendor— Affected before 1.23.0 Fixed in 1.23.0 Patch available GHSA-h4hr-7fg3-h35w

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*before 1.23.0VulnerablePrismJS
  • cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:* Versions before 1.23.0 Vulnerable ·PrismJS

Remediation

  • Fix · CNA prismjs Fixed in 1.23.0
  • Fix · GHSA-h4hr-7fg3-h35w prismjs (npm) Fixed in 1.23.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Service Mesh 2.0AffectedNo fix planned: Will not fix
Red Hat Ceph Storage 3AffectedNo fix planned: Will not fix
Red Hat Ceph Storage 4AffectedNo fix planned: Will not fix
Red Hat OpenShift Container Platform 3.11AffectedNo fix planned: Will not fix
Red Hat OpenShift Container Platform 4AffectedNo fix planned: Will not fix

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-23341
  2. 2026-10-03 Alias added: GHSA-h4hr-7fg3-h35w

References

  • TI-2024-35787 Code injection in PrismJS Prism CVSS 3.1MEDIUM 5.4
  • TI-2022-07699 Cross-site Scripting in Prism CVSS 3.1HIGH 7.5
  • TI-2021-12391 Regular Expression Denial of Service (ReDoS) in Prism CVSS 3.1HIGH 7.4
  • TI-2021-02732 Inefficient Regular Expression Complexity in prismjs/prism CVSS 3.1MEDIUM 6.5

Sources