CVE-2021-32723

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-32723
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32723.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32723
Aliases
Related
Published
2021-06-28T20:15:07Z
Modified
2025-02-19T03:19:45.025520Z
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
[none]
Details

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.

References

Affected packages

Git / github.com/prismjs/prism

Affected ranges

Type
GIT
Repo
https://github.com/prismjs/prism
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.4.0
1.5.0
1.5.1

v1.*

v1.0.0
v1.0.1
v1.1.0
v1.10.0
v1.11.0
v1.12.0
v1.12.1
v1.12.2
v1.13.0
v1.14.0
v1.15.0
v1.16.0
v1.17.0
v1.17.1
v1.18.0
v1.19.0
v1.2.0
v1.20.0
v1.21.0
v1.22.0
v1.23.0
v1.3.0
v1.4.1
v1.6.0
v1.7.0
v1.8.0
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.9.0