Cross-site scripting in wger - CVE-2026-40353
Published: April 20, 2026
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.