Advisory

PYSEC-2021-140

Also known as: CVE-2021-20270, GHSA-9w8r-397f-prfh

Summary

The record has no summary.

Details

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.

Severity

Not rated by the source.

Dates

Published
2021-03-23 17:15 UTC
Modified
2023-11-08 04:04 UTC

Affected packages and fixes

pygments

PyPI · All systems

Affected

  • introduced 1.5, fixed 2.7.4 (ecosystem)

Fixed versions

2.7.4

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences