CVE-2026-40353: wger - Stored XSS
- Cve: CVE-2026-40353
- Name: wger - Stored XSS
- 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.
- Impact: Authenticated attackers can execute arbitrary JavaScript in other users' browsers, leading to session hijacking or data theft.
- Remediation: Update to a version later than 2.5.
- Vulnerability type: stored_xss
- Vulnerability impact: stored_xss
- Requirement type: logged_in
- Requirements: Attacker must be an authenticated user able to create ingredients
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00215
- Epss percentile: 0.11949
- Assignee: [email protected]
- Published at: 2026-04-17T22:16:33Z
- Age in days: 221
- Modified at: 2026-06-17T10:45:10Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40353
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3 | nvd | 2026-04-17 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/wger-project/wger/security/advisories/GHSA-6f54-qjvm-wwq3 | nvd | Exploit, Mitigation, Vendor Advisory |
| https://github.com/wger-project/wger/releases/tag/2.5 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| wger:wger | < 2.5 | no | nvd | /v1/products/wger/wger |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| wger-project/wger | package, releases, security_advisory | yes | /v1/repositories/wger-project/wger |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-17
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts