{"answers":{"affected":"3 open source packages ship an affected version, including wger. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40353 exists.","fix":"No fix has been published for CVE-2026-40353 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-40353 is a medium-severity cross-site scripting vulnerability in wger-project wger, published on 17 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40353 and fix it if it is affected.\n\nWhat it is: CVE-2026-40353 is a medium-severity cross-site scripting vulnerability in wger-project wger, published on 17 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40353 exists.\n\nAffected packages and fixed versions:\n- wger (PyPI): affected all versions up to 2.4; no fix listed\n- wger (PyPI): affected all versions up to 2.4; no fix listed\n- wger (PyPI): affected all versions up to 2.4; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40353/ (Markdown: https://insights.sbomify.com/CVE-2026-40353/index.md)","id":"CVE-2026-40353","markdown":"https://insights.sbomify.com/CVE-2026-40353/index.md","name":"CVE-2026-40353","record":{"aliases":["GHSA-6f54-qjvm-wwq3","PYSEC-2026-3419"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Fitness management web app","requires_auth":"low_privilege","summary":"An authenticated user can inject malicious JavaScript into license fields, leading to stored XSS that executes in other users' browsers.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wger","vendor":"wger"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"wger: Stored XSS via Unescaped License Attribution Fields","id":"CVE-2026-40353","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Path traversal in xdg-desktop-portal","id":"CVE-2026-40354"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.4"],"package":"wger","purl":null,"source":"GHSA-6f54-qjvm-wwq3"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.4"],"package":"wger","purl":"pkg:pypi/wger","source":"GHSA-6f54-qjvm-wwq3"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.4"],"package":"wger","purl":"pkg:pypi/wger","source":"PYSEC-2026-3419"}],"prev":{"headline":"FastGPT: NoSQL Injection in updatePasswordByOld Leads to Account Takeover","id":"CVE-2026-40352"},"products":["wger"],"published":"2026-04-17","related":[{"cvss_score":7.8,"headline":"Improper Restriction of Excessive Authentication Attempts in wger-project/wger","id":"CVE-2022-2650","kev_date_added":null,"published":"2022-11-24"},{"cvss_score":7.6,"headline":"wger has Broken Access Control in the Global Gym Configuration Update Endpoint","id":"CVE-2026-40474","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":4.3,"headline":"wger: IDOR in RepetitionsConfig and MaxRepetitionsConfig API leak other users' workout data","id":"CVE-2026-27835","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":4.3,"headline":"wger: IDOR in nutritional_values endpoints exposes private dietary data via direct ORM lookup","id":"CVE-2026-27839","kev_date_added":null,"published":"2026-02-26"},{"cvss_score":3.1,"headline":"wger: IDOR via user-unscoped cache keys on routine API actions exposes workout data","id":"CVE-2026-27838","kev_date_added":null,"published":"2026-02-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["wger-project"]},"summary":"An authenticated user can inject malicious JavaScript into license fields, leading to stored XSS that executes in other users' browsers.","url":"https://insights.sbomify.com/CVE-2026-40353/"}