Advisory

GHSA-mrwq-x4v8-fh7p

Also known as: CVE-2022-40896, PYSEC-2023-117

Summary

Pygments vulnerable to ReDoS

Details

A ReDoS issue was discovered in pygments/lexers/smithy.py in Pygments until 2.15.0 via SmithyLexer.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-07-19 15:30 UTC
Modified
2024-10-24 22:27 UTC

Affected packages and fixes

pygments

PyPI · All systems

Affected

  • introduced 0, fixed 2.15.0 (ecosystem)

Fixed versions

2.15.0

Fix

  • Fixed version 2.15.0
    pip install --upgrade pygments==2.15.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences