p PatchFirst

CVE-2026-40353

CVE-2026-40353 · wger: Stored XSS via Unescaped License Attribution Fields

This page contains facts from public vulnerability sources. Check the original advisory before updating.

wger is a free, open-source workout and fitness manager. In versions 2.5 and below, the attribution_link property in AbstractLicenseModel constructs HTML by directly interpolating user-controlled license fields (such as license_author) without escaping, and templates render the result using Django's |safe filter. An authenticated user can create an ingredient with a malicious license_author value containing JavaScript, which executes in the browser of any visitor viewing the ingredient page, resulting in stored XSS. This issue has been fixed in version 2.5.

CVSS 5.1 · Medium · EPSS 0.2%

Published
Updated

Stack: python

Affected products and versions

  • wger

    Versions
    • < 2.5: Affected

    No fix published

  • wger PyPI

    Versions
    • 1.1
    • 1.1.1
    • 1.2
    • 1.2rc1
    • 1.3
    • 1.4
    • 1.5
    • 1.6
    • 1.6.1
    • 1.7
    • 1.8
    • 1.9
    • 2.0
    • 2.1
    Affected ranges
    • ECOSYSTEM: ≤ 2.4

    No fix published

Original sources

Check your server →