{"answers":{"affected":"2 open source packages ship an affected version, including defuddle. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-30830 exists.","fix":"Upgrade defuddle to 0.9.0 or later.","what":"CVE-2026-30830 is a low-severity cross-site scripting vulnerability in kepano defuddle, published on 7 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-30830 and fix it if it is affected.\n\nWhat it is: CVE-2026-30830 is a low-severity cross-site scripting vulnerability in kepano defuddle, published on 7 Mar 2026. An attacker can exploit it over the internet without logging in, 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-30830 exists.\n\nAffected packages and fixed versions:\n- defuddle (npm): affected all versions; fixed in 0.9.0\n- defuddle (npm): affected all versions; fixed in 0.9.0\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-30830/ (Markdown: https://insights.sbomify.com/CVE-2026-30830/index.md)","id":"CVE-2026-30830","markdown":"https://insights.sbomify.com/CVE-2026-30830/index.md","name":"CVE-2026-30830","record":{"aliases":["GHSA-5mq8-78gm-pjmq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"HTML cleaning library","requires_auth":"none","summary":"An attacker can inject malicious scripts via unescaped image attributes in Defuddle, potentially executing code in the context of the application using the library.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"defuddle","vendor":"kepano"}],"cvss":{"score":2.1,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Defuddle cleans up HTML pages. Prior to version 0.9.0, the _findContentBySchemaText method in src/defuddle.ts interpolates image src and alt attributes directly into an HTML string without escaping. An attacker can use a \" in the alt attribute to break out of the attribute context and inject event handler. This issue has been patched in version 0.9.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Defuddle: XSS via unescaped string interpolation in _findContentBySchemaText image tag","id":"CVE-2026-30830","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Rocket.Chat: 2FA bypass and login of deactivated users via EE ddp-streamer","id":"CVE-2026-30831"},"packages":[{"ecosystem":"npm","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"defuddle","purl":null,"source":"GHSA-5mq8-78gm-pjmq"},{"ecosystem":"npm","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"defuddle","purl":"pkg:npm/defuddle","source":"GHSA-5mq8-78gm-pjmq"}],"prev":{"headline":"Checkmate: Unauthenticated Access to Unpublished Status Page","id":"CVE-2026-30829"},"products":["defuddle"],"published":"2026-03-07","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":"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-10","vendors":["kepano"]},"summary":"An attacker can inject malicious scripts via unescaped image attributes in Defuddle, potentially executing code in the context of the application using the library.","url":"https://insights.sbomify.com/CVE-2026-30830/"}