CVE-2026-40353 Details
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.
A stored cross-site scripting vulnerability has been identified in wger, a workout and fitness management application, in versions through 2.4. The issue arises in the AbstractLicenseModel, where the attribution_link property constructs HTML by directly interpolating user-controlled license fields without proper escaping. This unescaped HTML is rendered in templates using Django's safe filter, allowing authenticated users to inject JavaScript that executes in the browsers of anyone viewing the affected ingredient page. The vulnerability has been patched in version 2.5.
Users can update to wger version 2.5 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/wger-project/wger/releases/tag/2.5 | [email protected] | Release Notes |
| https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| wger wger | < 2.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 24, 2026 | Initial Analysis | [email protected] |
| Apr 20, 2026 | CVE Modified | CISA-ADP |
| Apr 17, 2026 | New CVE Received | [email protected] |