Repository navigation
chore(repo): Update dependency ip-address@<10.3.1 to v10.7.4 [SECURITY] - #10714
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Important Review skippedBot user detected. Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
|
239588c to
978218f
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
This PR contains the following updates:
10.7.1→10.7.4Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process
CVE-2026-111997 / GHSA-rxp7-6hxx-x8q5
More information
Details
Summary
new Address6()andAddress6.isValid()strip a zone identifier with the pattern/%.*$/before they apply the 45-character length limit. When the string holds many%characters followed by a line terminator, the pattern is retried from every%and each attempt scans to the line terminator before failing, so rejecting the string takes time proportional to the square of its length. 10,000%characters and a newline take 41 ms, 40,000 take 632 ms and 100,000 take 3.9 s of synchronous work. The same strings without the newline are rejected in under a millisecond.An application that validates an attacker-supplied string with these methods can be stalled by a single long request. The input is rejected with the correct
AddressError; the cost of reaching that rejection is the defect.Details
The constructor in
src/ipv6.tsremoves the CIDR suffix, then the zone, then checks the length of what is left:RE_ZONE_STRINGis/%.*$/. It has no anchor at its start,.does not match a line terminator (\n,\r, U+2028 or U+2029), and without themflag$matches only at the end of the input. For%repeated N times and then\n, the engine starts a match at the first%,.*consumes the remaining%characters up to the newline,$fails there, and backtracking through every shorter.*fails too. The engine then starts again at the second%, and so on: N starts, each proportional to N. The length limit that follows rejects the string in constant time, after the scan has already run.The line terminator need not be last. Any string in which many
%characters precede a line terminator behaves the same way.Every entry point that passes a caller's string to the
Address6constructor is affected:new Address6(),isValid(), both arguments offromAddressAndMask()andfromAddressAndWildcardMask(), and the prefix argument offromAddress4Nat64()andtoAddress4Nat64().fromWildcard()rejects a%before it constructs anything,fromURL()admits only hex digits, colons and dots in a host, andfromArpa()checks the nibble grammar first, so those three are unaffected.Address4has no zone and is unaffected.Affected versions
<= 10.7.3. The zone pattern has been in the constructor since 1.0.0; 5.9.4, 9.0.5 and 10.7.0 show the same timings as 10.7.3.Impact
Address6.isValid()on N%characters and a newline, measured on ip-address 10.7.3 and node 24.21.0:!The parse is synchronous, so the event loop is blocked for the whole of the wall time and nothing else on that process is served. No memory is retained and the process resumes when the call returns.
Reachability
The input needs a line terminator after the
%characters, which decides where it can arrive. An HTTP header value cannot carry a carriage return or a line feed, so a host or address taken from a header does not reach this. A URL can carry both characters percent-encoded at three bytes each, and Node's default 16 KB limit on the request line and headers admits about 5,461 of them: 13 ms. A request body is where the larger sizes come from. Common body parsers default to between 100 KB and 1 MB, and at 100 KB one field passed to the parser unchecked blocks the process for 3.9 s.Proof of concept
npm i ip-address@10.7.3, then:On affected versions (node 24.21.0):
Each doubling of the input multiplies the time by four.
Remediation
Upgrade to the patched release. In the fix, the constructor finds the zone by the index of the first
%and accepts the remainder as a zone only when it holds no line terminator, which reads the input once. 1 MiB of the input above is rejected in about a millisecond. Every address that parsed before parses to the same result, and a string with a line terminator after a%is rejected as it was.RE_ZONE_STRINGstays exported fromv6/constantsfor code that imports it directly and is marked@deprecated; the library itself does not call it.If you cannot upgrade immediately, reject a candidate longer than an address with a zone identifier can be before you parse it:
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
beaugunderson/ip-address (ip-address@<10.3.1)
v10.7.4Compare Source
Full Changelog: beaugunderson/ip-address@v10.7.3...v10.7.4
v10.7.3Compare Source
What's Changed
Full Changelog: beaugunderson/ip-address@v10.7.2...v10.7.3
v10.7.2Compare Source
What's Changed
Full Changelog: beaugunderson/ip-address@v10.7.1...v10.7.2
Configuration
📅 Schedule: (in timezone GMT)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.