{"answers":{"affected":"2 open source packages ship an affected version, including facturascripts/facturascripts.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42877 exists.","fix":"No fix has been published for CVE-2026-42877 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-42877 is a medium-severity cross-site scripting vulnerability in NeoRazorX facturascripts, published on 27 May 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-42877 and fix it if it is affected.\n\nWhat it is: CVE-2026-42877 is a medium-severity cross-site scripting vulnerability in NeoRazorX facturascripts, published on 27 May 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-42877 exists.\n\nAffected packages and fixed versions:\n- facturascripts/facturascripts (Packagist): affected all versions up to 2025.92; no fix listed\n- facturascripts/facturascripts (Packagist): affected all versions up to 2025.92; 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-42877/ (Markdown: https://insights.sbomify.com/CVE-2026-42877/index.md)","id":"CVE-2026-42877","markdown":"https://insights.sbomify.com/CVE-2026-42877/index.md","name":"CVE-2026-42877","record":{"aliases":["GHSA-r736-2678-fcrx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Accounting invoicing software","requires_auth":"low_privilege","summary":"Authenticated users can inject malicious JavaScript via product references, leading to arbitrary code execution in other users' browsers.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"FacturaScripts is an open source accounting and invoicing software. In 2025.92 and earlier, a stored Cross-Site Scripting (XSS) vulnerability exists in the product search modal of sales (Core/Lib/AjaxForms/SalesModalHTML.php) and purchases documents (Core/Lib/AjaxForms/PurchasesModalHTML.php). An authenticated user with access to the warehouse module can create a product with a malicious reference that executes arbitrary JavaScript in the browser of any other user who opens the product search modal inside an invoice, order, or delivery note.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"FacturaScripts: Stored XSS via product reference in sales/purchases","id":"CVE-2026-42877","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"FacturaScripts: Unauthenticated phpinfo() Disclosure via Installer Endpoint in FacturaScripts","id":"CVE-2026-42878"},"packages":[{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["2025.92"],"package":"facturascripts/facturascripts","purl":null,"source":"GHSA-r736-2678-fcrx"},{"ecosystem":"Packagist","fixed":[],"introduced":["0"],"last_affected":["2025.92"],"package":"facturascripts/facturascripts","purl":"pkg:composer/facturascripts/facturascripts","source":"GHSA-r736-2678-fcrx"}],"prev":{"headline":"External Secrets Operator: Privilege escalation with secret overwriting","id":"CVE-2026-42876"},"products":["facturascripts"],"published":"2026-05-27","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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-28","vendors":["NeoRazorX"]},"summary":"Authenticated users can inject malicious JavaScript via product references, leading to arbitrary code execution in other users' browsers.","url":"https://insights.sbomify.com/CVE-2026-42877/"}