{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-47610 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-47610 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-47610 is a high-severity cross-site scripting vulnerability in InvenTree, published on 7 Oct 2024. 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-2024-47610 and fix it if it is affected.\n\nWhat it is: CVE-2024-47610 is a high-severity cross-site scripting vulnerability in InvenTree, published on 7 Oct 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-47610 in the wild and no public exploit code.\n\nAffected product: InvenTree. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2024-47610/ (Markdown: https://insights.sbomify.com/CVE-2024-47610/index.md)","id":"CVE-2024-47610","markdown":"https://insights.sbomify.com/CVE-2024-47610/index.md","name":"CVE-2024-47610","record":{"aliases":["GHSA-wp3m-jhgv-rhqr"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Inventory Management System","requires_auth":"low_privilege","summary":"A registered user can inject malicious JavaScript into markdown notes, which executes in the browsers of other logged-in users viewing the same page.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"inventree","vendor":"inventree_project"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"InvenTree is an Open Source Inventory Management System. In affected versions of InvenTree it is possible for a registered user to store javascript in markdown notes fields, which are then displayed to other logged in users who visit the same page and executed. The vulnerability has been addressed as follows: 1. HTML sanitization has been enabled in the front-end markdown rendering library - `easymde`. 2. Stored markdown is also validated on the backend, to ensure that malicious markdown is not stored in the database. These changes are available in release versions 0.16.5 and later. All users are advised to upgrade. There are no workarounds, an update is required to get the new validation functions.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Stored Cross-site Scripting Vulnerability in Markdown Editor","id":"CVE-2024-47610","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"XZ Utils on Microsoft Windows platform are vulnerable to argument injection","id":"CVE-2024-47611"},"packages":[],"prev":{"headline":"Remotely exploitable DoS in Tonic `\u003c=v0.12.2`","id":"CVE-2024-47609"},"products":["InvenTree"],"published":"2024-10-07","related":[{"cvss_score":9,"headline":"Unrestricted Upload of File with Dangerous Type in inventree/inventree","id":"CVE-2022-2111","kev_date_added":null,"published":"2022-06-17"},{"cvss_score":9,"headline":"Improper Neutralization of Formula Elements in a CSV File in inventree/inventree","id":"CVE-2022-2112","kev_date_added":null,"published":"2022-06-17"},{"cvss_score":8.4,"headline":"Cross-site Scripting (XSS) - Stored in inventree/inventree","id":"CVE-2022-2113","kev_date_added":null,"published":"2022-06-17"},{"cvss_score":8.3,"headline":"InvenTree has Arbitrary API Token Creation","id":"CVE-2026-35478","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":8.2,"headline":"Cross-site Scripting (XSS) - Stored in inventree/inventree","id":"CVE-2022-3355","kev_date_added":null,"published":"2022-09-29"},{"cvss_score":7.7,"headline":"InvenTree Vulnerable to ORM Filter Injection","id":"CVE-2026-33530","kev_date_added":null,"published":"2026-03-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-08","vendors":["inventree"]},"summary":"A registered user can inject malicious JavaScript into markdown notes, which executes in the browsers of other logged-in users viewing the same page.","url":"https://insights.sbomify.com/CVE-2024-47610/"}