CVE-2026-40353: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wger-project wger
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.
AI Analysis
Technical Summary
CVE-2026-40353 is a stored cross-site scripting vulnerability in the wger open-source workout and fitness manager. In versions before 2.5, the attribution_link property in AbstractLicenseModel constructs HTML by directly embedding user-controlled license fields such as license_author without escaping. The resulting HTML is rendered with Django's |safe filter, allowing an authenticated user to inject JavaScript code via the license_author field of an ingredient. This malicious script executes in the context of any visitor viewing the affected ingredient page. The vulnerability is addressed in wger version 2.5.
Potential Impact
Successful exploitation allows an authenticated user to inject and execute arbitrary JavaScript in the browsers of users viewing the compromised ingredient page. This can lead to session hijacking, defacement, or other client-side attacks depending on the injected payload. The CVSS 4.0 base score is 5.1, indicating a medium severity impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in wger version 2.5. Users should upgrade to version 2.5 or later to remediate this issue. Since no official patch or temporary fix details are provided beyond the version update, upgrading is the recommended remediation. No additional vendor advisory content is available to indicate alternative mitigations or that no action is required.
CVE-2026-40353: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wger-project wger
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40353 is a stored cross-site scripting vulnerability in the wger open-source workout and fitness manager. In versions before 2.5, the attribution_link property in AbstractLicenseModel constructs HTML by directly embedding user-controlled license fields such as license_author without escaping. The resulting HTML is rendered with Django's |safe filter, allowing an authenticated user to inject JavaScript code via the license_author field of an ingredient. This malicious script executes in the context of any visitor viewing the affected ingredient page. The vulnerability is addressed in wger version 2.5.
Potential Impact
Successful exploitation allows an authenticated user to inject and execute arbitrary JavaScript in the browsers of users viewing the compromised ingredient page. This can lead to session hijacking, defacement, or other client-side attacks depending on the injected payload. The CVSS 4.0 base score is 5.1, indicating a medium severity impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in wger version 2.5. Users should upgrade to version 2.5 or later to remediate this issue. Since no official patch or temporary fix details are provided beyond the version update, upgrading is the recommended remediation. No additional vendor advisory content is available to indicate alternative mitigations or that no action is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T22:50:01.359Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2a83ebdfbbecc5994f14e
Added to database: 4/17/2026, 9:38:06 PM
Last enriched: 4/17/2026, 9:53:21 PM
Last updated: 4/21/2026, 6:56:02 AM
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.