GHSA-28xv-ph75-77wh

Suggest an improvement
Source
https://github.com/advisories/GHSA-28xv-ph75-77wh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-28xv-ph75-77wh/GHSA-28xv-ph75-77wh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-28xv-ph75-77wh
Aliases
  • CVE-2026-54335
Published
2026-07-14T19:40:05Z
Modified
2026-07-14T19:45:41.275965293Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__
Details

Impact

The _.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.

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.

Patches

Fixed in @feathersjs/commons@5.0.45. The fix skips __proto__, constructor, and prototype keys during iteration — the standard remediation used by lodash and others.

Workarounds

Avoid passing JSON-parsed untrusted input through commons._.merge. Freezing Object.prototype or validating/sanitizing keys upstream also mitigates.

Credit

Reported responsibly by Andrew Ridings (@ridingsa).

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": null,
    "severity": "LOW",
    "github_reviewed_at": "2026-07-14T19:40:05Z",
    "cwe_ids": [
        "CWE-1321"
    ]
}
References

Affected packages

npm / @feathersjs/commons

Package

Name
@feathersjs/commons
View open source insights on deps.dev
Purl
pkg:npm/%40feathersjs/commons

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.0.45

Database specific

last_known_affected_version_range
"<= 5.0.44"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-28xv-ph75-77wh/GHSA-28xv-ph75-77wh.json"