A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42338

CVE-2026-42338: ip-address Library XSS Vulnerability

CVE-2026-42338 is a cross-site scripting flaw in the ip-address JavaScript library affecting Address6.group() and Address6.link() methods. Attackers can inject malicious scripts when untrusted input is rendered as HTML.

Published: May 17, 2026

CVE-2026-42338 Overview

CVE-2026-42338 is a cross-site scripting (XSS) vulnerability [CWE-79] in the ip-address JavaScript library, used for parsing and manipulating IPv4 and IPv6 addresses. Versions prior to 10.1.1 fail to HTML-escape attacker-controlled content in the Address6.group() and Address6.link() methods. The AddressError.parseMessage thrown by the Address6 constructor can also embed unescaped input in one code branch. Applications that pass untrusted input to Address6 and render the output through HTML sinks such as innerHTML are exposed to script injection. The maintainers fixed the issue in version 10.1.1.

Critical Impact

Attackers can inject arbitrary JavaScript into applications that render Address6 output as HTML, enabling session hijacking, credential theft, and unauthorized actions in the victim's browser context.

Affected Products

  • ip-address npm library versions prior to 10.1.1
  • JavaScript applications using Address6.group() for HTML rendering
  • JavaScript applications using Address6.link() for HTML rendering

Discovery Timeline

  • 2026-05-12 - CVE-2026-42338 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42338

Vulnerability Analysis

The vulnerability resides in the ip-address library's handling of IPv6 address rendering helpers. The Address6.group() and Address6.link() methods return HTML strings that embed input characters without applying entity encoding. When the library throws an AddressError on invalid input, one branch of parseMessage similarly includes raw input in the error text.

An application becomes vulnerable when it passes untrusted user input to the Address6 constructor and then renders the returned HTML, or the caught error's parseMessage, through a sink like Element.innerHTML. Because the library produces an HTML string directly, downstream developers may reasonably assume the output is already safe, removing the prompt to apply additional sanitization.

Successful exploitation executes attacker-supplied JavaScript in the origin of the vulnerable application. This enables theft of session cookies, manipulation of the DOM, and actions performed on behalf of the authenticated user.

Root Cause

The root cause is missing output encoding in string-building code paths that return HTML markup. The affected functions concatenate user-controlled segments into HTML without escaping <, >, ", ', or &. The parseMessage branch suffers the same encoding gap when constructing error text from invalid input.

Attack Vector

Exploitation requires an application that (1) accepts attacker-controlled strings as input to Address6 and (2) renders the returned HTML or thrown error message into a DOM sink that interprets HTML. An attacker submits a crafted IPv6-like string containing HTML or script payload syntax. The application calls Address6.group(), Address6.link(), or catches the resulting AddressError, then writes the unescaped output to the page. The browser parses the injected markup and executes the attacker's script.

No verified public proof-of-concept code is available. See the GitHub Security Advisory for maintainer-provided technical details.

Detection Methods for CVE-2026-42338

Indicators of Compromise

  • Unexpected <script> tags, event handlers, or HTML entities appearing in rendered IPv6 address output
  • Outbound requests from user browsers to attacker-controlled domains following IP-address input submission
  • Browser console errors or Content Security Policy (CSP) violation reports referencing inline script execution on pages that render Address6 output

Detection Strategies

  • Inventory dependencies and flag any project with ip-address resolved below version 10.1.1 in package-lock.json or yarn.lock
  • Perform static analysis to identify calls to Address6.group(), Address6.link(), or AddressError.parseMessage whose return values flow to innerHTML, outerHTML, document.write, or framework dangerouslySetInnerHTML sinks
  • Add unit tests that submit XSS payloads such as <img src=x onerror=alert(1)> to Address6 and assert that DOM output contains escaped entities

Monitoring Recommendations

  • Deploy a strict Content Security Policy that blocks inline scripts and unsanctioned script sources to limit exploitation impact
  • Monitor web application firewall (WAF) and CSP violation reports for script-injection patterns targeting IP-address input fields
  • Log and alert on client-side errors emitted from pages that render IPv6 address data

How to Mitigate CVE-2026-42338

Immediate Actions Required

  • Upgrade ip-address to version 10.1.1 or later in all JavaScript projects
  • Audit application code for rendering of Address6.group(), Address6.link(), and caught AddressError.parseMessage values through HTML sinks
  • Apply server-side or client-side HTML escaping to any IP-address-derived content before insertion into the DOM

Patch Information

The maintainer fixed CVE-2026-42338 in ip-address version 10.1.1 by HTML-escaping attacker-controlled content in Address6.group(), Address6.link(), and the affected AddressError.parseMessage branch. Refer to the GitHub Security Advisory GHSA-v2v4-37r5-5v8g for the official fix details.

Workarounds

  • Replace innerHTML assignments with textContent when displaying values derived from Address6 output
  • Wrap untrusted input in an explicit HTML-escape function before passing it to Address6 or before rendering library output
  • Validate IPv6 input against a strict character allowlist (hexadecimal digits, colons, dots, slashes) before invoking Address6
bash
# Upgrade ip-address to a patched release
npm install ip-address@^10.1.1

# Verify the resolved version
npm ls ip-address

# Audit for known advisories across dependencies
npm audit --production

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechIp Address

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability

  • CVE-2026-42951: MacGregor VDR Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English