What’s Vulnerable › Vulnerabilities
CVE-2026-40353: wger: Stored XSS via Unescaped License Attribution Fields
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-17 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- wger-project wger: before 2.5 — fixed in 2.5
How to fix
Upgrade to a fixed version: wger-project wger 2.5. Check the vendor advisory for mitigations.
References
- https://github.com/wger-project/wger/releases/tag/2.5
- https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3
- https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3
Get alerted when CVE-2026-40353 or the next vulnerability affects your stack