{"answers":{"affected":"2 open source packages ship an affected version, including invoiceninja/invoiceninja. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33628 exists.","fix":"Upgrade invoiceninja/invoiceninja to 5.13.4 or later.","what":"CVE-2026-33628 is a medium-severity cross-site scripting vulnerability in invoiceninja, published on 26 Mar 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-33628 and fix it if it is affected.\n\nWhat it is: CVE-2026-33628 is a medium-severity cross-site scripting vulnerability in invoiceninja, published on 26 Mar 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-33628 exists.\n\nAffected packages and fixed versions:\n- invoiceninja/invoiceninja (Packagist): affected all versions; fixed in 5.13.4\n- invoiceninja/invoiceninja (Packagist): affected all versions; fixed in 5.13.4\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-33628/ (Markdown: https://insights.sbomify.com/CVE-2026-33628/index.md)","id":"CVE-2026-33628","markdown":"https://insights.sbomify.com/CVE-2026-33628/index.md","name":"CVE-2026-33628","record":{"aliases":["GHSA-98wm-cxpw-847p"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Invoice Ninja","requires_auth":"low_privilege","summary":"Attackers can inject stored XSS payloads into invoice line items, potentially compromising user sessions in the client portal or PDF previews.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"invoice_ninja","vendor":"invoiceninja"}],"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"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"Invoice Ninja is a source-available invoice, quote, project and time-tracking app built with Laravel. Invoice line item descriptions in Invoice Ninja v5.13.0 bypass the XSS denylist filter, allowing stored XSS payloads to execute when invoices are rendered in the PDF preview or client portal. The line item description field was not passed through `purify::clean()` before rendering. This is fixed in v5.13.4 by the vendor by adding `purify::clean()` to sanitize line item descriptions.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Invoice Ninja Denylist Bypass may Lead to Stored XSS via Invoice Line Items","id":"CVE-2026-33628","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Use after free in c-ares","id":"CVE-2026-33630"},"packages":[{"ecosystem":"Packagist","fixed":["5.13.4"],"introduced":["0"],"last_affected":[],"package":"invoiceninja/invoiceninja","purl":null,"source":"GHSA-98wm-cxpw-847p"},{"ecosystem":"Packagist","fixed":["5.13.4"],"introduced":["0"],"last_affected":[],"package":"invoiceninja/invoiceninja","purl":"pkg:composer/invoiceninja/invoiceninja","source":"GHSA-98wm-cxpw-847p"}],"prev":{"headline":"Parse Server: Auth data exposed via /users/me endpoint","id":"CVE-2026-33627"},"products":["invoiceninja"],"published":"2026-03-26","related":[{"cvss_score":8.1,"headline":"Deserialization in n/a","id":"CVE-2021-33898","kev_date_added":null,"published":"2021-06-06"},{"cvss_score":7.7,"headline":"Server-side request forgery in n/a","id":"CVE-2026-29925","kev_date_added":null,"published":"2026-03-30"},{"cvss_score":6.5,"headline":"Cross-site Scripting (XSS) - Stored in invoiceninja/invoiceninja","id":"CVE-2021-3977","kev_date_added":null,"published":"2021-12-24"},{"cvss_score":5.4,"headline":"Invoice Ninja has Stored XSS via Markdown HTML Injection in Product Notes","id":"CVE-2026-33742","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":5.4,"headline":"Cross-site scripting in n/a","id":"CVE-2017-1000466","kev_date_added":null,"published":"2018-01-03"}],"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":"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-03-27","vendors":["invoiceninja"]},"summary":"Attackers can inject stored XSS payloads into invoice line items, potentially compromising user sessions in the client portal or PDF previews.","url":"https://insights.sbomify.com/CVE-2026-33628/"}