Advisory

PYSEC-2026-2045

Also known as: CVE-2024-49766, GHSA-f9vj-2wh5-fj8j

Summary

Werkzeug safe_join not safe on Windows

Details

On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safe_join() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable.

Severity

Not rated by the source.

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

werkzeug

PyPI · All systems

Affected

  • introduced 0, fixed 3.0.6 (ecosystem)

Fixed versions

3.0.6

Fix

  • Fixed version 3.0.6
    pip install --upgrade werkzeug==3.0.6

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