Advisory

GHSA-f9vj-2wh5-fj8j

Also known as: CVE-2024-49766, PYSEC-2026-2045

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-25 19:43 UTC
Modified
2026-09-10 03:50 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences