{"answers":{"affected":"2 open source packages ship an affected version, including shuchkin/simplexlsx.","exploited":"There is no known exploitation of CVE-2024-55878 in the wild and no public exploit code.","fix":"Upgrade shuchkin/simplexlsx to 1.1.12 or later.","what":"CVE-2024-55878 is a medium-severity vulnerability in shuchkin simplexlsx, published on 12 Dec 2024."},"fix_prompt":"Check this codebase for CVE-2024-55878 and fix it if it is affected.\n\nWhat it is: CVE-2024-55878 is a medium-severity vulnerability in shuchkin simplexlsx, published on 12 Dec 2024. \nExploitation: There is no known exploitation of CVE-2024-55878 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shuchkin/simplexlsx (Packagist): affected from 1.0.12; fixed in 1.1.12\n- shuchkin/simplexlsx (Packagist): affected from 1.0.12; fixed in 1.1.12\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-55878/ (Markdown: https://insights.sbomify.com/CVE-2024-55878/index.md)","id":"CVE-2024-55878","markdown":"https://insights.sbomify.com/CVE-2024-55878/index.md","name":"CVE-2024-55878","record":{"aliases":["GHSA-x6mh-rjwm-8ph7"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"SimpleXLSX is software for parsing and retrieving data from Excel XLSx files. Starting in version 1.0.12 and prior to version 1.1.12, when calling the extended toHTMLEx method, it is possible to execute arbitrary JavaScript code. Version 1.1.12 fixes the issue. As a workaround, don't use direct publication via toHTMLEx.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site Scripting vulnerability in SimpleXLSXEx::readXfs and SimpeXLSX::toHTMLEx","id":"CVE-2024-55878","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":null,"year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"XWiki allows RCE from script right in configurable sections","id":"CVE-2024-55879"},"packages":[{"ecosystem":"Packagist","fixed":["1.1.12"],"introduced":["1.0.12"],"last_affected":[],"package":"shuchkin/simplexlsx","purl":null,"source":"GHSA-x6mh-rjwm-8ph7"},{"ecosystem":"Packagist","fixed":["1.1.12"],"introduced":["1.0.12"],"last_affected":[],"package":"shuchkin/simplexlsx","purl":"pkg:composer/shuchkin/simplexlsx","source":"GHSA-x6mh-rjwm-8ph7"}],"prev":{"headline":"XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList","id":"CVE-2024-55877"},"products":["simplexlsx"],"published":"2024-12-12","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-13","vendors":["shuchkin"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-55878/"}