Repository navigation
Security patches (release/2.2.0-alpha1) - #405
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
wojcik91
force-pushed
the
release/2.2.0-alpha1
branch
from
September 30, 2026 09:31
f6a32cb to
eec0c5d
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
from
September 30, 2026 09:36
f9ad32a to
d9f8145
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
3 times, most recently
from
October 17, 2026 21:59
b111895 to
601ab7e
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
3 times, most recently
from
October 23, 2026 21:01
d9d6cdb to
da06fa1
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
3 times, most recently
from
November 2, 2026 20:49
621d122 to
360e669
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
from
November 6, 2026 00:49
360e669 to
3d80ea9
Compare
renovate
Bot
deleted the
renovate/release/2.2.0-alpha1-security-patches
branch
November 9, 2026 05:37
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
4 times, most recently
from
November 13, 2026 18:57
e24703e to
d43b0d7
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
3 times, most recently
from
November 22, 2026 13:59
274597f to
ceded08
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
2 times, most recently
from
November 30, 2026 12:06
3cfef26 to
4d5095c
Compare
renovate
Bot
force-pushed
the
renovate/release/2.2.0-alpha1-security-patches
branch
from
December 2, 2026 22:49
4d5095c to
ad223f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.2.0→4.2.50.18.2→0.18.311.9.0→11.11.06.16.0→6.16.10.23.45→0.23.460.103.15→0.103.161.5.4→1.6.80.35.4→0.35.51.53.1→1.53.31.53.1→1.53.32.5.8→2.5.97.3.6→7.3.74.5.4→4.6.6Incorrect escaping for
url("")functions in CSS style attributesGHSA-69v2-w9vg-4g83 / RUSTSEC-2021-0157
More information
Details
In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used.
As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
XSS in ammonia via SVG
animateMotion,animateTransform, and/oranimateColortagsGHSA-f2pc-rwv3-69mv / RUSTSEC-2021-0158
More information
Details
The neutralization that ammonia applied to
animateandsetwas not applied to other forms of SVG animation, which can be used for XSS.The following SVG will produce a link with a javascript scheme.
If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on
attributeName,so the contents of the
to,from, andvaluestags were not sanitized as URLs.Applications that do not explicitly allow any of these tags should not be affected,
since none are allowed by default.
This vulnerability was reported by ucsurf.
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Missing case-insensitive matching for CSS url function
GHSA-x43w-36pp-96g3 / RUSTSEC-2026-0373
More information
Details
URL filtering, such as relative URLs and URL scheme limits,
is not always applied when CSS sanitization is used.
When the inner URL is quoted, CSS
url("")is matched case-sensitively,when it should be matched case-insensitively.
As a result, while
url("")gets the intended domain name filtering,URL("")does not.The following example shows how an application needs to be configured
to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them.
It does not allow XSS, and its usefulness for data exfiltration is limited.
This vulnerability was reported by Louis Li.
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Incorrect handling of embedded SVG and MathML leads to mutation XSS
GHSA-934p-vp7m-gx3c / RUSTSEC-2026-0533
More information
Details
The MathML text integration points (
mi,mo,mn,ms,mtext) and SVGforeignObjectcan be made to contain a tag in the other one's namespace (a MathML integration point with a child in the SVG namespace, or vice versa) without the root tag that switches out of the HTML namespace. If the attacker can construct input that parses differently in as HTML than as foreign XML, they can inject arbitrary JavaScript code into the user's browser.For example:
<math><mi><svg><gadget></svg></mi></math>.math,mi, and the gadget, but notsvg.<math><mi><gadget></mi></math>.As far as we know, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.
This vulnerability was reported by Roger Meyer.
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
cookie: Private cookie nonces can repeat in processes that fork
CVE-2026-140014 / GHSA-8wcq-xq25-7fhm / RUSTSEC-2026-0594
More information
Details
Who is affected
Only applications that call
fork()and then add private (encrypted) cookies on the thread that forked, in more than one of the resulting processes. This is an uncommon way to deploy a Rust web application. In particular:SignedJar) are not affected.The exact conditions are listed under "Conditions" below.
Description
Private cookies are sealed with AES-256-GCM using a random 96-bit nonce. Affected versions drew the nonce from
rand's thread-local generator,rand::thread_rng(). That generator hands out bytes from an internal buffer and only notices that the process has forked when the buffer is refilled. A process that forks therefore continues, in both the parent and the child, from the same buffered bytes, and the private cookies sealed first on each side of the fork use the same nonces.Impact
Reusing a nonce under the same key breaks AES-GCM. From two private cookies that share a nonce, an attacker can:
The nonce is the first 12 bytes of a private cookie's (base64-decoded) value, so a repeated nonce is visible to anyone who holds two such cookies.
Exploitation requires the uncommon deployment described above, and only the first private cookies added after a fork are affected: at most 21 per process. An attacker must obtain two of them, from two different processes.
Conditions
All of the following must hold:
fork()without a subsequentexec().fork()usedrand::thread_rng()at any point before the fork. Any use counts, includingKey::generate(), adding a private cookie, or a call made by an unrelated crate.Key.When they hold, at most the first 21 private cookies added on that thread in each process share nonces. After that the generator reseeds and the processes diverge.
The following are not affected:
rand::thread_rng()before the fork.SignedJar), which do not use a nonce.0.12.0through0.13.3, and0.11.2and earlier, which obtained nonces from the operating system viaring.Rocket and axum
Rocket and axum were tested with
cookie0.18.2by collecting the private cookies sent by each server process and comparing their nonces.Rocket (
0.5.4,CookieJar::add_private()) is not affected. Rocket does not fork, and it handles requests on worker threads of a runtime it creates when launched. No nonce was reused:axum (
0.8.9, withPrivateCookieJarfromaxum-extra0.12.6) is not affected as normally run. No nonce was reused:An axum application is affected only if it does all of the following:
rand::thread_rng()on that thread before forking.In that configuration, the first private cookies sent by two workers reused nonces: 19 when the parent had added one private cookie before forking, and 15 when the parent had only called
Key::generate(). No nonce was reused when the parent did neither.Other frameworks and libraries that use this crate's
PrivateJarwere not tested. The conditions above apply to them as well.Fix
Version
0.18.3obtains nonces directly from the operating system's random number generator, which is not affected byfork.Workarounds
If upgrading is not possible, any one of the following prevents the reuse:
rand::thread_rng(), directly or indirectly, on the forking thread before forking. In particular, create theKeywithKey::from()orKey::derive_from()rather thanKey::generate()before the fork.rand::thread_rng()before adding any private cookie.Applications that ran in an affected configuration should rotate their
Key.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Private cookie nonces can repeat in processes that fork
CVE-2026-140014 / GHSA-8wcq-xq25-7fhm / RUSTSEC-2026-0594
More information
Details
Who is affected
Only applications that call
fork()and then add private (encrypted) cookieson the thread that forked, in more than one of the resulting processes. This
is an uncommon way to deploy a Rust web application. In particular:
application forks worker processes itself and runs each on a
current-thread runtime. See "Rocket and axum" below.
applications on Windows.
SignedJar) are not affected.The exact conditions are listed under "Conditions" below.
Description
Private cookies are sealed with AES-256-GCM using a random 96-bit nonce.
Affected versions drew the nonce from
rand's thread-local generator,rand::thread_rng(). That generator hands out bytes from an internal bufferand only notices that the process has forked when the buffer is refilled. A
process that forks therefore continues, in both the parent and the child, from
the same buffered bytes, and the private cookies sealed first on each side of
the fork use the same nonces.
Impact
Reusing a nonce under the same key breaks AES-GCM. From two private cookies
that share a nonce, an attacker can:
other is known, and
name and value of their choosing, that the application accepts as
authentic.
The nonce is the first 12 bytes of a private cookie's (base64-decoded) value,
so a repeated nonce is visible to anyone who holds two such cookies.
Exploitation requires the uncommon deployment described above, and only the
first private cookies added after a fork are affected: at most 21 per process.
An attacker must obtain two of them, from two different processes.
Conditions
All of the following must hold:
fork()without asubsequent
exec().fork()usedrand::thread_rng()at any pointbefore the fork. Any use counts, including
Key::generate(), adding aprivate cookie, or a call made by an unrelated crate.
more of the resulting processes: the parent and a child, or several
children.
Key.When they hold, at most the first 21 private cookies added on that thread in
each process share nonces. After that the generator reseeds and the processes
diverge.
The following are not affected:
rand::thread_rng()before the fork.
includes servers that fork and then start a multi-threaded async runtime
in each child.
SignedJar), which do not use a nonce.0.12.0through0.13.3, and0.11.2and earlier, whichobtained nonces from the operating system via
ring.Rocket and axum
Rocket and axum were tested with
cookie0.18.2by collecting the privatecookies sent by each server process and comparing their nonces.
Rocket (
0.5.4,CookieJar::add_private()) is not affected. Rocket doesnot fork, and it handles requests on worker threads of a runtime it creates
when launched. No nonce was reused:
processes that each launched Rocket.
axum (
0.8.9, withPrivateCookieJarfromaxum-extra0.12.6) is notaffected as normally run. No nonce was reused:
processes that each started a multi-threaded runtime.
An axum application is affected only if it does all of the following:
so that requests are handled on that thread, and
rand::thread_rng()on that thread before forking.In that configuration, the first private cookies sent by two workers reused
nonces: 19 when the parent had added one private cookie before forking, and 15
when the parent had only called
Key::generate(). No nonce was reused whenthe parent did neither.
Other frameworks and libraries that use this crate's
PrivateJarwere nottested. The conditions above apply to them as well.
Fix
Version
0.18.3obtains nonces directly from the operating system's randomnumber generator, which is not affected by
fork.Workarounds
If upgrading is not possible, any one of the following prevents the reuse:
rand::thread_rng(), directly or indirectly, on the forkingthread before forking. In particular, create the
KeywithKey::from()or
Key::derive_from()rather thanKey::generate()before the fork.bytes from
rand::thread_rng()before adding any private cookie.Applications that ran in an affected configuration should rotate their
Key.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:NReferences
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph
CVE-2026-82392 / GHSA-c59q-g84q-2gj5
More information
Details
Summary
The virtual store linker constructs package installation directories using
path.join(modules, pkgName)wherepkgNameis extracted from lockfilepackageskeys viadp.parse(depPath).namewithout validation. A craftedpnpm-lock.yamlwith traversal sequences in depPath keys (e.g.,../../../tmp/pwned@1.0.0) causes package content to be written to arbitrary filesystem paths duringpnpm install.This is an incomplete fix of GHSA-fr4h-3cph-29xv — the
safeJoinModulesDircontainment helper was applied to the hoisted linker andsymlinkDependencybut NOT to the virtual store linker'slockfileToDepGraph.ts:233.Details
Root Cause
dp.parse()atpnpm11/deps/path/src/index.ts:135extracts the package name as:This is a raw substring operation with zero validation that
nameis a valid npm package name. A depPath of../../../tmp/pwned@1.0.0yieldsname = '../../../tmp/pwned'.Vulnerable Code Path
pnpm-lock.yaml→lockfile.packages['../../../../../../../tmp/pwned@1.0.0'](attacker-controlled lockfile key)nameVerFromPkgSnapshot(depPath, pkgSnapshot)atlockfile/utils/src/nameVerFromPkgSnapshot.ts:16→ callsdp.parse(depPath)→ returns{ name: '../../../../../../../tmp/pwned' }lockfileToDepGraph.ts:232→modules = path.join(dirInVirtualStore, 'node_modules')lockfileToDepGraph.ts:233→dir = path.join(modules, pkgName)→ resolves to/tmp/pwned(ESCAPES virtual store)storeController.importPackage(depNode.dir, ...)→ writes package content to the traversed pathWhy Existing Defenses Don't Catch It
depPathToFilename()— replaces/with+for thedirInVirtualStorepath, butpkgNamecomes SEPARATELY fromdp.parse()and is NOT passed through this functionverifyLockfileResolutions()— validates dependency map keys (aliases) viaisValidDependencyAlias(), but never validates the depPath keys themselvesyaml.load(lockfileRawContent)with no schema validation onpackageskeysimportPackage()— acceptstargetDirand passes it directly tocafsStore.importPackage(targetDir, ...)with zero containment checkEscalation to RCE (non-default config)
When
dangerouslyAllowAllBuilds: trueis configured (or the traversal package name is in the explicitallowBuildslist), the same traversed path is used in the rebuild phase atafter-install/src/index.ts:402,470. The attacker'spostinstallscript then executes with the victim's shell access. Under default config,allowBuildreturns false for unknown packages, limiting impact to arbitrary file write.Also Affected (PnP linker)
When
nodeLinker: pnpis configured,lockfileToPackageRegistry()atlockfile/to-pnp/src/index.ts:105-110uses the same unvalidateddp.parse().nameinpackageLocationconstruction, allowing the.pnp.cjsresolver map to point outside the virtual store. This is a lower-impact variant (PnP is not the default linker).Impact
An attacker who can commit a crafted
pnpm-lock.yamlto a repository (or supply one via a malicious package) can cause arbitrary file writes on the machine of any user who runspnpm install. Written content is the actual package files from a real npm package (attacker controls which package and which destination).Targets for arbitrary file write include:
.git/hooks/pre-commit— code execution on next git operation~/.local/bin/— binary hijackingReproduction
Craft a
pnpm-lock.yaml:Run
pnpm install— package content is written to/tmp/pwned/instead of the virtual store.Recommended Fix
Apply
safeJoinModulesDir(or equivalent validation) at:lockfileToDepGraph.ts:233—path.join(modules, pkgName)after-install/src/index.ts:402—path.join(pkgModulesDir(depPath), pkgInfo.name)lockfile/to-pnp/src/index.ts:105-110— PnPpackageLocationAlternatively, validate depPath keys during lockfile parsing to reject any that don't produce valid npm package names via
dp.parse().Relationship to GHSA-fr4h-3cph-29xv
GHSA-fr4h-3cph-29xv fixed the hoisted linker path (
lockfileToHoistedDepGraph.ts:222) by addingsafeJoinModulesDir. The same fix was NOT applied to the virtual store linker, which uses the identicaldp.parse().name → path.join()pattern atlockfileToDepGraph.ts:233.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
pnpm: A tarball dependency's manifest
nameescapes node_modules → arbitrary file write/overwrite on installCVE-2026-82393 / GHSA-vq4v-j7r6-jq4m
More information
Details
Summary
When resolving a package, pnpm uses the resolved manifest
nameas a raw path segment for the isolated-linker import target. A tarball dependency whosepackage.jsonnameis a scoped path traversal (@x/../../…/<abs path>) is therefore extracted outsidenode_modules, to an attacker-chosen absolute path, and can overwrite existing files there. Attacker controls the destination, filenames, and contents → arbitrary file write → code execution (e.g.~/.zshrc,.git/hooks/pre-commit, another package's code). Occurs duringpnpm installeven with--ignore-scripts(no lifecycle scripts run), defeating that safety.Same class as the just-patched GHSA-hwx4 (transitive-dependency alias traversal) and GHSA-v23m (
stage downloadmanifest name/version traversal), in a sink their fixes did not cover: the isolated-linker import target keyed by the resolved name.Root cause
path.join(modules, <resolved name>)ininstalling/deps-resolver/src/resolvePeers.ts:706,installing/deps-resolver/src/index.ts:614, anddeps/graph-builder/src/lockfileToDepGraph.ts:233— without thesafeJoinModulesDirguard used on the symlink/hoisted/bin paths (installing/deps-restorer/src/lockfileToHoistedDepGraph.ts:222). The store location isnode_modules/.pnpm/<id>/node_modules/<name>, so a traversal<name>escapes.resolving/npm-resolver/src/pickPackage.ts:753) rejects only unscoped names containing/, so a scoped@x/../..passes.Steps to reproduce
Self-contained PoC (real
pnpm@11.9.0; loopback tarball server; escape target is a throwaway temp dir):Confirmed output (
repro/poc.mjs, exit 0):Remediation
Route the isolated-linker import-target joins (
resolvePeers.ts:706,deps-resolver/index.ts:614,lockfileToDepGraph.ts:233) throughsafeJoinModulesDir(as the hoisted linker already does), and/or enforcevalidate-npm-package-nameon the resolved manifest name (close the scoped-name gap atpickPackage.ts:753) so the import target rejects a traversal name and re-asserts containment before any write.Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
pnpm: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yaml
CVE-2026-101043 / GHSA-vx52-2968-3vc6
More information
Details
Summary
pnpm expands
${VAR}environment placeholders in thehttpProxy/httpsProxy/noProxysettings read from a project'spnpm-workspace.yaml. Because a project manifest is repository-controlled, a malicious repository that a victim merely clones and runspnpm installin can route all install traffic through an attacker proxy whose hostname or userinfo embeds — and thereby exfiltrates — an environment secret such asNPM_TOKENorGITHUB_TOKEN.This bypasses a trust boundary pnpm deliberately enforces: env-placeholder expansion of request-destination settings is already suppressed for
registry,pnprServer,registriesandnamedRegistrieswhen they come from an untrusted project manifest, and the sibling.npmrcreader already classifies the proxy keys as request destinations. The manifest-side guard set simply omitted them.Impact
An attacker who controls only the contents of a repository's
pnpm-workspace.yaml— a public repo, a fork, or a supply-chain pull request — can read many values out of the victim's process environment and have them delivered to an attacker-controlled host. No pre-existing access to the victim's store, global config, lockfile,node_modules, or environment is required. The secret is exfiltrated during config loading, before any lifecycle script runs.This turns "I can author a project manifest" into "I read the victim's environment secrets."
Affected versions
Introduced in pnpm 10.7.0, which added environment-variable expansion in setting names and values.
>= 11.0.0, < 11.11.0>= 10.7.0, < 10.34.5The Rust port (
pacquet) and the registry server (pnpr) are not affected.Patches
The fix adds
httpProxy,httpsProxy,noProxy,proxyandnoproxyto the request-destination key set in@pnpm/config.reader(src/getOptionsFromRootManifest.ts), so env placeholders in proxy settings from an untrusted manifest are dropped rather than expanded — matching the existingregistry/pnprServerhandling and the.npmrcreader'sisRequestDestinationValueKey. Regression tests cover the proxy keys.Workarounds
Upgrade to a patched version. Until then, do not run pnpm commands in an untrusted repository in an environment that holds secrets, or inspect the repository's
pnpm-workspace.yamlfor proxy settings before installing.Proof of concept
With
NPM_TOKENset in the victim's environment,pnpm installexpands the placeholder and routes install traffic through the attacker's host, whose hostname (and DNS query) carries the token.Unit level:
Using
registryorpnprServerin place ofhttpsProxydoes not leak on either version — those keys were already guarded, which is what made the proxy keys a hole in an existing boundary rather than an unguarded surface.Credit
Reported privately. A second finding in the original report — the
Authorizationheader being retained across a same-hosthttps->httpredirect — was assessed and is not treated as a pnpm vulnerability: npm (make-fetch-happen,minipass-fetch), Yarn (got) and reqwest all compare host rather than origin, and a registry that redirects from HTTPS to plaintext HTTP is itself the broken component. That behavior is being discussed publicly at https://github.com/orgs/pnpm/discussions/13598.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
CVE-2026-110816 / GHSA-6pq8-jhm2-2vcw
More information
Details
Summary
qs.stringify(obj, { arrayFormat: 'comma' })throws an uncaughtTypeError: Cannot convert object to primitive valuewhen an array inobjcontains an element that carries an own, non-callabletoStringproperty (for example{ a: [ { toString: 'x' } ] }). A remote, unauthenticated attacker who can influence an object that the application later re-serializes with the comma array format triggers the throw. In a service that lacks a synchronous error boundary around the serialization call, the uncaught exception crashes the worker process, producing a denial of service.Root Cause
When
arrayFormat: 'comma'is selected, the comma branch collapses the whole array into a single value viaArray.prototype.join, or, underencodeValuesOnly: true, maps each element through the value encoder before joining. Both paths perform an implicit string coercion (ToPrimitivewith hint"string") on each element. For an object whose owntoStringis a non-callable value, coercion skips the shadowed non-callabletoString, falls through toObject.prototype.valueOf(which returns the object rather than a primitive), and throws. The comma branch runs this coercion before the per-element null and skip handling in the main loop, so nothing downstream can neutralize the hostile element, and the throw is never caught inside the library.Impact
Prerequisites: the application calls
qs.stringifywitharrayFormat: 'comma'(a documented, supported option) on an object whose shape can be influenced by attacker input. Attacker-controllable sources includeqs.parse(input, { allowPrototypes: true }), which retains atoStringsegment (Express 4's default query parser, Express 5'sextendedquery parser, and body-parser'sextendedurlencoded parser all set it),qs.parse(input, { plainObjects: true }), whose null-prototype elements throw even without atoStringkey (eg,a[][b]=c), andJSON.parseof a request body, which needs no qs parse option at all. No authentication or user interaction is required. Demonstrated capability: a single request forces an uncaught synchronousTypeErrorin the serialization call. In a naive single-process Node service with no synchronous error boundary, this crashes the process and takes the service offline (availability impact). Under a framework such as Express that traps synchronous handler throws, the plausible outcome is a per-request 500 rather than a full outage; that lower-impact case is noted but not the worst credible supported deployment. There is no confidentiality or integrity impact, no memory unsafety, and no prototype pollution.Proof of Concept
Install qs at the affected version (for example 6.16.0) and run the following script with Node.js. No network setup is required; it demonstrates the throw in isolation.Attack Chain
qs.stringify(obj, { arrayFormat: 'comma' }).{ a: [ { toString: <non-callable value> } ] }, either viaa[0][toString]=xparsed withallowPrototypes, or via a JSON body{"a":[{"toString":"x"}]}.stringify, the primitive/buffer guard atlib/stringify.js:134is false for an array, so control reaches the comma branch atlib/stringify.js:149.encodeValuesOnlypath, the closurev == null ? v : encoder(v)atlib/stringify.js:152-154passes onlynull/undefinedthrough; a non-null object still reaches the encoder. The default path skips that closure entirely and reachesobj.join(',')atlib/stringify.js:156with no guard at all.Array.prototype.join, orString(str)atlib/utils.js:292).ToPrimitiveskips the non-callable owntoString,valueOfreturns the object, and aTypeErroris thrown.Bypass Evidence
This is a different element type on the code path CVE-2026-8723 (GHSA-q8mj-m7cp-5q26) patched, plus the default comma path, which that fix never covered. CVE-2026-8723 addressed a
TypeErrorcrash onnull/undefinedentries in the comma plusencodeValuesOnlypath. Its fix (commit 21f80b3) wraps the encoder infunction (v) { return v == null ? v : encoder(v); }, so it only passesnullandundefinedthrough. A non-null element with a hostile owntoStringfails thev == nulltest, so the encoder still runs and still throws; the encodeValuesOnly case (case C above) throws on the exact fixed code. The default comma path (encodeValuesOnlyunset, the library default) never entered that fix at all:git log -S "obj.join(','" -- lib/stringify.jsshows no security fix has ever touched theobj.join(',')line, and cases A and B throw withencodeValuesOnlyunset. The related isBuffer hard