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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T01:37:21.000Z
- Modified: 2026-07-13T16:42:29.595Z
- Also known as: GHSA-6f54-qjvm-wwq3, PYSEC-2026-3419
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wger-project wger: < 2.5
- wger (PyPI): up to 2.4
- wger wger: before 2.5

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.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`

## References

- <https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/wger-project/wger/releases/tag/2.5> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40353> (advisory)
- <https://github.com/wger-project/wger> (package)
- <https://pypi.org/project/wger> (package)
- <https://github.com/advisories/GHSA-6f54-qjvm-wwq3> (advisory)

## Sources

- CVE List: [CVE-2026-40353](https://www.cve.org/CVERecord?id=CVE-2026-40353), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-6f54-qjvm-wwq3](https://github.com/advisories/GHSA-6f54-qjvm-wwq3), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40353](https://nvd.nist.gov/vuln/detail/CVE-2026-40353), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-3419](https://osv.dev/vulnerability/PYSEC-2026-3419), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40353 · Whole record: https://cve.day/CVE-2026-40353.json · Rebuilt by cve.day 2026-11-25T22:59:18.973Z
