製品・ソフトウェアに関する情報
beaugundersonのip-addressにおけるクロスサイトスクリプティングの脆弱性
Title beaugundersonのip-addressにおけるクロスサイトスクリプティングの脆弱性
Summary

ip-addressは、JavaScriptでIPv4およびIPv6アドレスの解析と操作を行うライブラリです。バージョン10.1.1より前のバージョンでは、Address6.group()およびAddress6.link()が返すHTML文字列に、攻撃者が制御するコンテンツをHTMLエスケープせずに埋め込んでいました。また、無効な入力に対してAddress6コンストラクタから発生するAddressError.parseMessageには、ある分岐でエスケープされていない攻撃者制御のコンテンツが含まれる可能性があります。信頼できない入力をAddress6に渡し、これらのメソッドの出力やスローされたエラーのparseMessageをHTMLとして(例えばinnerHTMLで)レンダリングするアプリケーションには、クロスサイトスクリプティングの脆弱性があります。この脆弱性はバージョン10.1.1で修正されました。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 12, 2026, midnight
Registration Date May 21, 2026, 10:55 a.m.
Last Update May 21, 2026, 10:55 a.m.
CVSS3.0 : 警告
Score 6.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected System
beaugunderson
ip-address 10.1.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月21日]
  掲載
May 21, 2026, 10:55 a.m.

NVD Vulnerability Information
CVE-2026-42338
Summary

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.

Publication Date May 13, 2026, 5:16 a.m.
Registration Date May 15, 2026, 4:18 a.m.
Last Update May 20, 2026, 5:04 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:beaugunderson:ip-address:*:*:*:*:*:node.js:*:* 10.1.1
Related information, measures and tools
Common Vulnerabilities List