{"answers":{"affected":"2 open source packages ship an affected version, including inventree.","exploited":"There is no known exploitation of GHSA-7rq4-qcpw-74gq in the wild and no public exploit code.","fix":"Upgrade inventree to 0.7.2 or later.","what":"GHSA-7rq4-qcpw-74gq is a vulnerability in inventree, published on 17 Jun 2022. 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 GHSA-7rq4-qcpw-74gq and fix it if it is affected.\n\nWhat it is: GHSA-7rq4-qcpw-74gq is a vulnerability in inventree, published on 17 Jun 2022. 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 GHSA-7rq4-qcpw-74gq in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- inventree (PyPI): affected all versions; fixed in 0.7.2\n- inventree (PyPI): affected all versions; fixed in 0.7.2\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/GHSA-7rq4-qcpw-74gq/ (Markdown: https://insights.sbomify.com/GHSA-7rq4-qcpw-74gq/index.md)","id":"GHSA-7rq4-qcpw-74gq","markdown":"https://insights.sbomify.com/GHSA-7rq4-qcpw-74gq/index.md","name":"GHSA-7rq4-qcpw-74gq","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"InvenTree inventory system","requires_auth":"low_privilege","summary":"Attackers can inject malicious formulas into exported CSV/XLS files, potentially executing code when victims open the files in spreadsheet software.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nDatasets exported to file (e.g. CSV / XLS) are not sufficiently sanitized, to neutralize potential formula injection\n\n### Patches\n\n- The issue is addressed in the upcoming 0.8.0 release\n- This fix will also be back-ported to the 0.7.x branch, applied to the 0.7.2 release\n\n### Workarounds\n\nUsers exporting untrusted data should open the files in safe mode (e.g. in Microsoft Excel).\n\n### References\n\n- https://huntr.dev/bounties/e57c36e7-fa39-435f-944a-3a52ee066f73/\n- https://owasp.org/www-community/attacks/CSV_Injection\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [github](http://github.com/inventree/inventree)\n* Email us at [security@inventree.org](mailto:security@inventree.org)","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Formula Injection in Exported Data","id":"GHSA-7rq4-qcpw-74gq","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"other","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"inventree","purl":null,"source":"GHSA-7rq4-qcpw-74gq"},{"ecosystem":"PyPI","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"inventree","purl":"pkg:pypi/inventree","source":"GHSA-7rq4-qcpw-74gq"}],"products":null,"published":"2022-06-17","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can inject malicious formulas into exported CSV/XLS files, potentially executing code when victims open the files in spreadsheet software.","url":"https://insights.sbomify.com/GHSA-7rq4-qcpw-74gq/"}