Advisory

GHSA-m9mq-p2f9-cfqv

Also known as: CVE-2018-7753, PYSEC-2018-51

Summary

Bleach URI Scheme Restriction Bypass

Details

An issue was discovered in Bleach 2.1.x before 2.1.3. Attributes that have URI values weren't properly sanitized if the values contained character entities. Using character entities, it was possible to construct a URI value with a scheme that was not allowed that would slide through unsanitized.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-01-04 17:46 UTC
Modified
2025-02-16 05:29 UTC

Affected packages and fixes

bleach

PyPI · All systems

Affected

  • introduced 2.1.0, fixed 2.1.3 (ecosystem)

Fixed versions

2.1.3

Fix

  • Fixed version 2.1.3
    pip install --upgrade bleach==2.1.3

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