Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40353: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wger-project wger

0
Medium
VulnerabilityCVE-2026-40353cvecve-2026-40353cwe-79
Published: Fri Apr 17 2026 (04/17/2026, 21:16:12 UTC)
Source: CVE Database V5
Vendor/Project: wger-project
Product: 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

AILast updated: 04/17/2026, 21:53:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses