Security mailing lists by PureSourceCode

CVE-2021-32723

MEDIUM 6.5CVSS 3.1

Regular Expression Denial of Service (ReDoS) in Prism

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.

Published
28 Jun 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-400
Also known as
GHSA-gj77-59wh-66hg
Sources
NVDJSONOSV GHSA-gj77-59wh-66hgJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD prismjs prism
cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*
< 1.24.0 1.24.0
NVD oracle application_express
cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:*
< 21.1.4 21.1.4
OSV npm prismjs < 1.24.0 1.24.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 28 Jun 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.