Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wger
  4. ›
  5. CVE-2026-40353

CVE-2026-40353: wger has Stored XSS via Unescaped License Attribution Fields

April 16, 2026

The AbstractLicenseModel.attribution_link property in wger/utils/models.py constructs HTML strings by directly interpolating user-controlled fields (license_author, license_title, license_object_url, license_author_url, license_derivative_source_url) without any escaping. The resulting HTML is rendered in the ingredient view template using Django’s |safe filter, which disables auto-escaping. An authenticated user can create an ingredient with a malicious license_author value containing JavaScript, which executes when any user (including unauthenticated visitors) views the ingredient page.

References

  • github.com/advisories/GHSA-6f54-qjvm-wwq3
  • github.com/wger-project/wger
  • github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3
  • nvd.nist.gov/vuln/detail/CVE-2026-40353

Code Behaviors & Features

Detect and mitigate CVE-2026-40353 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.4

Solution

Unfortunately, there is no solution available yet.

Impact 4.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/wger/CVE-2026-40353.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Apr 2026 12:22:24 +0000.