Cross-site scripting in wger - CVE-2026-40353

 

Cross-site scripting in wger - CVE-2026-40353

Published: April 20, 2026


Vulnerability identifier: #VU126594
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-40353
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: wger Project
Affected software:
wger

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary script in a victim's browser.

The vulnerability exists due to cross-site scripting in the AbstractLicenseModel.attribution_link property and ingredient view template when rendering user-controlled license attribution fields. A remote user can create an ingredient with a specially crafted license_author value to execute arbitrary script in a victim's browser.

The malicious content is stored in the database and is triggered when any user, including unauthenticated visitors, views the public ingredient page.


How to mitigate CVE-2026-40353

Install security update from vendor's website.

Sources