Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-42338: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beaugunderson ip-address

0
Medium
VulnerabilityCVE-2026-42338cvecve-2026-42338cwe-79
Published: Tue May 12 2026 (05/12/2026, 19:43:16 UTC)
Source: CVE Database V5
Vendor/Project: beaugunderson
Product: ip-address

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 20:39:42 UTC

Technical Analysis

The ip-address library for JavaScript, used for parsing and manipulating IPv4 and IPv6 addresses, contains an XSS vulnerability in versions before 10.1.1. Specifically, the Address6.group() and Address6.link() methods fail to HTML-escape attacker-controlled content before returning HTML strings, and the AddressError.parseMessage can include unescaped attacker input in error messages. If an application passes untrusted input to Address6 and renders these outputs directly into HTML, it can lead to cross-site scripting. The vulnerability is addressed in version 10.1.1 by properly escaping such content.

Potential Impact

Exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript in the context of the vulnerable application if it renders the affected outputs as HTML. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, the vulnerability requires the application to both pass untrusted input to Address6 and render the output as HTML without proper sanitization. There are no known exploits in the wild as of the publication date.

Mitigation Recommendations

Upgrade the ip-address library to version 10.1.1 or later, where this vulnerability is fixed by proper HTML escaping of attacker-controlled content. Until upgraded, avoid rendering the outputs of Address6.group(), Address6.link(), or AddressError.parseMessage directly as HTML, or ensure proper HTML escaping/sanitization is applied before rendering. Patch status is not explicitly confirmed in the advisory, but the fix is included in version 10.1.1.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-26T13:26:14.514Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a038bd7cbff5d861016494d

Added to database: 5/12/2026, 8:21:43 PM

Last enriched: 5/12/2026, 8:39:42 PM

Last updated: 5/13/2026, 4:49:20 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses