Skip to content

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

MediumCVSS 5.1 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi wger(PyPI) <= 2.4; = 1.1; = 1.1.1; = 1.2 +11 more after 2.4 Fixed
wger < 2.5 2.5 Fixed
wger-project wger = < 2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi wger(PyPI) <= 2.4 No fix listed
pypi wger(PyPI) = 1.1 No fix listed
pypi wger(PyPI) = 1.1.1 No fix listed
pypi wger(PyPI) = 1.2 No fix listed
pypi wger(PyPI) = 1.2rc1 No fix listed
pypi wger(PyPI) = 1.3 No fix listed
pypi wger(PyPI) = 1.4 No fix listed
pypi wger(PyPI) = 1.5 No fix listed
pypi wger(PyPI) = 1.6 No fix listed
pypi wger(PyPI) = 1.6.1 No fix listed
pypi wger(PyPI) = 1.7 No fix listed
pypi wger(PyPI) = 1.8 No fix listed
pypi wger(PyPI) = 1.9 No fix listed
pypi wger(PyPI) = 2.0 No fix listed
pypi wger(PyPI) = 2.1 No fix listed
wger-project wger = < 2.5 No fix listed
wger < 2.5 2.5

References