CVE-2026-54335: @feathersjs/commons Prototype Pollution Vulnerability
LOWCVE-2026-54335 is a LOW (CVSS 3.7) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @feathersjs/commons libraries in the npm ecosystem. The issue involves prototype pollution in @feathersjs/commons _.merge via json-parsed __proto__. Remediation is available by upgrading affected packages to version 5.0.45.
CVE-2026-54335 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-54335
To remediate this vulnerability, upgrade all affected @feathersjs/commons dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @feathersjs/commons@5.0.45
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @feathersjs/commons
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-54335, inspect your project dependencies using npm:
npm ls @feathersjs/commons
Analyze the terminal output to locate any version of @feathersjs/commons in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.45), your application is affected.
Note: The npm ls @feathersjs/commons command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @feathersjs/commons, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54335 Affected @feathersjs/commons Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@feathersjs/commons
|
npm |
< 5.0.45
|
5.0.45
|
References
Frequently Asked Questions
What is CVE-2026-54335?
Which @feathersjs/commons versions are affected?
What version fixes CVE-2026-54335?
Is @feathersjs/commons affected?
What is the CVSS score of CVE-2026-54335?
What CWE is associated with CVE-2026-54335?
How can I check npm dependencies for CVE-2026-54335?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-28xv-ph75-77wh",
"modified" : "2026-07-14T19:40:05Z",
"published" : "2026-07-14T19:40:05Z",
"aliases" : [ "CVE-2026-54335" ],
"summary" : "Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__",
"details" : "### Impact\n\nThe `_.merge(target, source)` utility exported by `@feathersjs/commons` recursively merges `source` into `target` by iterating `Object.keys(source)`. When `source` was produced by `JSON.parse` and contains a `__proto__` (or `constructor` / `prototype`) key, that key is returned as an own-enumerable property. The recursive merge then resolves `target['__proto__']` to `Object.prototype` and writes the attacker-supplied properties onto it, polluting the prototype for all plain objects in the process for the lifetime of the Node process.\n\n**Scope of real-world risk is limited.** No first-party Feathers package routes input — trusted or untrusted — through `commons._.merge`. The `@feathersjs/authentication` package, which does merge request-influenced data, uses `lodash/merge` (prototype-pollution-safe since 4.17.12), not this utility. Exploitation therefore requires a downstream plugin or application to pass JSON-parsed, attacker-controlled input directly through the exported `_.merge`.\n\n### Patches\n\nFixed in `@feathersjs/commons@5.0.45`. The fix skips `__proto__`, `constructor`, and `prototype` keys during iteration — the standard remediation used by lodash and others.\n\n### Workarounds\n\nAvoid passing JSON-parsed untrusted input through `commons._.merge`. Freezing `Object.prototype` or validating/sanitizing keys upstream also mitigates.\n\n### Credit\n\nReported responsibly by Andrew Ridings (@ridingsa).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@feathersjs/commons"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.45"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.0.44"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/feathersjs/feathers/security/advisories/GHSA-28xv-ph75-77wh"
}, {
"type" : "WEB",
"url" : "https://github.com/feathersjs/feathers/pull/3690"
}, {
"type" : "WEB",
"url" : "https://github.com/feathersjs/feathers/commit/28b3c03c63bdbff53115fdaa46c56980e7942acc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/feathersjs/feathers"
}, {
"type" : "WEB",
"url" : "https://github.com/feathersjs/feathers/releases/tag/v5.0.45"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-14T19:40:05Z",
"nvd_published_at" : null
}
}