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
In wger versions before 2.5, the attribution_link property in AbstractLicenseModel constructs HTML by directly embedding user-controlled license fields without escaping. The use of Django's |safe filter in templates allows this unescaped content to be rendered as executable HTML/JavaScript. An authenticated user can exploit this to inject stored XSS payloads via the license_author field when creating an ingredient. This results in arbitrary JavaScript execution in the browsers of users who view the ingredient page. The vulnerability is addressed in wger version 2.5.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary JavaScript in the context of other users viewing the affected ingredient pages. This can lead to session hijacking, defacement, or other client-side attacks. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, and limited privileges required (authenticated user). There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade wger to version 2.5 or later, where this vulnerability has been fixed. The fix involves properly escaping user-controlled license fields before rendering and avoiding unsafe template filters. Since no official patch link or temporary fix is provided, upgrading to the fixed version is the recommended remediation.
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.
CVSS v4.0
Score 5.1medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In wger versions before 2.5, the attribution_link property in AbstractLicenseModel constructs HTML by directly embedding user-controlled license fields without escaping. The use of Django's |safe filter in templates allows this unescaped content to be rendered as executable HTML/JavaScript. An authenticated user can exploit this to inject stored XSS payloads via the license_author field when creating an ingredient. This results in arbitrary JavaScript execution in the browsers of users who view the ingredient page. The vulnerability is addressed in wger version 2.5.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary JavaScript in the context of other users viewing the affected ingredient pages. This can lead to session hijacking, defacement, or other client-side attacks. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, and limited privileges required (authenticated user). There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade wger to version 2.5 or later, where this vulnerability has been fixed. The fix involves properly escaping user-controlled license fields before rendering and avoiding unsafe template filters. Since no official patch link or temporary fix is provided, upgrading to the fixed version is the recommended remediation.
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/25/2026, 2:51:37 AM
Last updated: 6/4/2026, 8:00:23 AM
Views: 80
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.