highlight.js@9.18.5 vulnerabilities

Syntax highlighting with language autodetection.

Direct Vulnerabilities

Known vulnerabilities in the highlight.js package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It works with pretty much any markup, doesn’t depend on any framework, and has automatic language detection.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via Exponential and Polynomial catastrophic backtracking in multiple language highlighting.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade highlight.js to version 10.4.1 or higher.

>=9.0.0 <10.4.1