Pygments@2.9.0 vulnerabilities

Pygments is a syntax highlighting package written in Python.

Direct Vulnerabilities

Known vulnerabilities in the Pygments 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)

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expressions in SqlJinjaLexer class. Exploiting this vulnerability is possible when processing Smithy, SQL/SQL+Jinja, or Java properties files from an untrusted source.

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

Upgrade Pygments to version 2.15.0 or higher.

[,2.15.0)