{"answers":{"affected":"2 open source packages ship an affected version, including ip-address. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42338 exists.","fix":"Upgrade ip-address to 10.1.1 or later.","what":"CVE-2026-42338 is a medium-severity cross-site scripting vulnerability in beaugunderson ip-address, published on 12 May 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-42338 and fix it if it is affected.\n\nWhat it is: CVE-2026-42338 is a medium-severity cross-site scripting vulnerability in beaugunderson ip-address, published on 12 May 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-42338 exists.\n\nAffected packages and fixed versions:\n- ip-address (npm): affected all versions; fixed in 10.1.1\n- ip-address (npm): affected all versions; fixed in 10.1.1\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-42338/ (Markdown: https://insights.sbomify.com/CVE-2026-42338/index.md)","id":"CVE-2026-42338","markdown":"https://insights.sbomify.com/CVE-2026-42338/index.md","name":"CVE-2026-42338","record":{"aliases":["CLEANSTART-2026-JW65236","CLEANSTART-2026-UV41499","CLEANSTART-2026-WK56892","CLEANSTART-2026-WX98104","CLSA-2026-1782694761","CLSA-2026-1790006158","CLSA-2026-1792776533","DEBIAN-CVE-2026-42338","ECHO-f113-cab6-59eb","GHSA-v2v4-37r5-5v8g","MINI-2r6p-r353-4pv4","MINI-2vcq-78gf-pjcv","MINI-2wq3-6wwx-qg7m","MINI-43v8-hchm-7p5h","MINI-486c-c7gp-v648","MINI-4ggp-4g2x-6p66","MINI-54x7-2786-7jv7","MINI-5653-m3fx-xc99","MINI-59rq-rqgw-pxc7","MINI-6vm8-px2j-5hf7","MINI-8vv6-598p-5wq4","MINI-95v4-j858-gxmx","MINI-9j9p-qhh8-f5mr","MINI-cgrw-5mc2-m3g6","MINI-f38c-c8pw-6v7w","MINI-f3mc-7cr4-h8qv","MINI-f434-mwfx-rc67","MINI-f7r6-66r9-m748","MINI-g49c-2v7j-32mq","MINI-gmg5-p3fw-mpc5","MINI-h573-p4q3-r284","MINI-hpj7-q63c-4rfj","MINI-jgvr-73c3-wr98","MINI-jhg8-7hjm-x7mv","MINI-mp4v-cm36-ggrj","MINI-mq2c-xp56-qmw5","MINI-p94f-xfqw-wqcp","MINI-pm47-3g7x-54hq","MINI-pmrc-vv57-4mgq","MINI-qfgp-93pp-8m53","MINI-r4r5-rf49-r75j","MINI-r4vp-m8m2-qrmj","MINI-rm3r-pc5g-j5g9","MINI-rq82-jg65-h4wc","MINI-vm6q-prmg-96rc","MINI-vq2v-v885-43mc","MINI-w6qj-x25x-cxpm","ROOT-APP-NPM-CVE-2026-42338","UBUNTU-CVE-2026-42338"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript IP address library","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in victim browsers if applications render unescaped IPv6 address data from this library as HTML.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ip-address","vendor":"beaugunderson"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.1.1, Address6.group() and Address6.link() do not HTML-escape attacker-controlled content before embedding it in the HTML strings they return, and AddressError.parseMessage (emitted by the Address6 constructor for invalid input) can contain unescaped attacker-controlled content in one branch. An application that (1) passes untrusted input to Address6 and (2) renders the output of these methods, or the thrown error's parseMessage, as HTML (e.g. via innerHTML) is vulnerable to cross-site scripting. This vulnerability is fixed in 10.1.1.","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":"ip-address: XSS in Address6 HTML-emitting methods","id":"CVE-2026-42338","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"New API: SSRF Filter Bypass via 0.0.0.0","id":"CVE-2026-42339"},"packages":[{"ecosystem":"npm","fixed":["10.1.1"],"introduced":["0"],"last_affected":[],"package":"ip-address","purl":null,"source":"GHSA-v2v4-37r5-5v8g"},{"ecosystem":"npm","fixed":["10.1.1"],"introduced":["0"],"last_affected":[],"package":"ip-address","purl":"pkg:npm/ip-address","source":"GHSA-v2v4-37r5-5v8g"}],"prev":{"headline":"MaxKB: Broken Access Control in MaxKB OSS URL Fetch API","id":"CVE-2026-42337"},"products":["ip-address"],"published":"2026-05-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":"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-09-11","vendors":["beaugunderson"]},"summary":"Attackers can execute arbitrary scripts in victim browsers if applications render unescaped IPv6 address data from this library as HTML.","url":"https://insights.sbomify.com/CVE-2026-42338/"}