{"answers":{"affected":"2 open source packages ship an affected version, including serialize-javascript.","exploited":"There is no known exploitation of CVE-2026-97711 in the wild and no public exploit code.","fix":"Upgrade serialize-javascript to 7.1.2 or later.","what":"CVE-2026-97711 is a low-severity cross-site scripting vulnerability in yahoo serialize-javascript, published on 29 Sep 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-97711 and fix it if it is affected.\n\nWhat it is: CVE-2026-97711 is a low-severity cross-site scripting vulnerability in yahoo serialize-javascript, published on 29 Sep 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: There is no known exploitation of CVE-2026-97711 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- serialize-javascript (npm): affected from 7.1.1; fixed in 7.1.2\n- serialize-javascript (npm): affected from 7.1.1; fixed in 7.1.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/CVE-2026-97711/ (Markdown: https://insights.sbomify.com/CVE-2026-97711/index.md)","id":"CVE-2026-97711","markdown":"https://insights.sbomify.com/CVE-2026-97711/index.md","name":"CVE-2026-97711","record":{"aliases":["CLSA-2026-1790854792","DEBIAN-CVE-2026-97711","GHSA-gfhx-hw2g-v5hg","UBUNTU-CVE-2026-97711"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript serialization library","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in the victim's browser by injecting unescaped closing script tags into serialized function bodies.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is embedded in a script element, the surviving closing tag terminates the element early and causes the remaining output to be parsed as HTML, enabling cross-site scripting in the page origin. Only function values are affected; ordinary data values and options.isJSON output are unaffected. This issue is fixed in version 7.1.2.","ecosystems":["npm"],"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":"Serialize JavaScript: Cross-site scripting (XSS) via unescaped \u003c/script\u003e in serialized function bodies","id":"CVE-2026-97711","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Nexus Repository 3 - Privilege Escalation via Role Management","id":"CVE-2026-97712"},"packages":[{"ecosystem":"npm","fixed":["7.1.2"],"introduced":["7.1.1"],"last_affected":[],"package":"serialize-javascript","purl":null,"source":"GHSA-gfhx-hw2g-v5hg"},{"ecosystem":"npm","fixed":["7.1.2"],"introduced":["7.1.1"],"last_affected":[],"package":"serialize-javascript","purl":"pkg:npm/serialize-javascript","source":"GHSA-gfhx-hw2g-v5hg"}],"prev":{"headline":"Convex: Unauthorized data access","id":"CVE-2026-97691"},"products":["serialize-javascript"],"published":"2026-09-29","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":"2026-09-29","vendors":["yahoo"]},"summary":"Attackers can execute arbitrary scripts in the victim's browser by injecting unescaped closing script tags into serialized function bodies.","url":"https://insights.sbomify.com/CVE-2026-97711/"}