CVE-2026-50131: @fedify/fedify ValidatePublicUrl Allows Special-use IPv4 Ranges Vulnerability
HIGHCVE-2026-50131 is a HIGH (CVSS 8.6) validatepublicurl allows special-use ipv4 ranges vulnerability (CWE-1286: Improper Validation of Syntactic Correctness of Input) affecting @fedify/fedify libraries in the npm ecosystem. The issue involves validatepublicurl allows special-use ipv4 ranges. Remediation is available by upgrading affected packages to version 1.9.12, 1.10.11, 2.0.19, 2.1.15, 2.2.4.
CVE-2026-50131 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L).
How to Fix CVE-2026-50131
To remediate this vulnerability, upgrade all affected @fedify/fedify 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 @fedify/fedify@1.9.12
npm install @fedify/fedify@1.10.11
npm install @fedify/fedify@2.0.19
npm install @fedify/fedify@2.1.15
npm install @fedify/fedify@2.2.4
npm install @fedify/vocab-runtime@2.0.19
npm install @fedify/vocab-runtime@2.1.15
npm install @fedify/vocab-runtime@2.2.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @fedify/fedify
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-50131, inspect your project dependencies using npm:
npm ls @fedify/fedify
Analyze the terminal output to locate any version of @fedify/fedify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.12), your application is affected.
Note: The npm ls @fedify/fedify 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-1286: Improper Validation of Syntactic Correctness of Input, where the product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax. In @fedify/fedify, 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-50131 Affected @fedify/fedify Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@fedify/fedify
|
npm |
≥ 0.11.2
< 1.9.12
|
1.9.12
|
|
@fedify/fedify
|
npm |
≥ 1.10.0
< 1.10.11
|
1.10.11
|
|
@fedify/fedify
|
npm |
≥ 2.0.0
< 2.0.19
|
2.0.19
|
|
@fedify/fedify
|
npm |
≥ 2.1.0
< 2.1.15
|
2.1.15
|
|
@fedify/fedify
|
npm |
≥ 2.2.0
< 2.2.4
|
2.2.4
|
|
@fedify/vocab-runtime
|
npm |
< 2.0.19
|
2.0.19
|
|
@fedify/vocab-runtime
|
npm |
≥ 2.1.0
< 2.1.15
|
2.1.15
|
|
@fedify/vocab-runtime
|
npm |
≥ 2.2.0
< 2.2.4
|
2.2.4
|
References
Frequently Asked Questions
What is CVE-2026-50131?
Which @fedify/fedify versions are affected?
What version fixes CVE-2026-50131?
Is @fedify/fedify affected?
Is @fedify/vocab-runtime affected?
What is the CVSS score of CVE-2026-50131?
What CWE is associated with CVE-2026-50131?
How can I check npm dependencies for CVE-2026-50131?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xw9q-2mv6-9fr8",
"modified" : "2026-07-14T18:15:25Z",
"published" : "2026-07-14T18:15:25Z",
"aliases" : [ "CVE-2026-50131" ],
"summary" : "Fedify has an incomplete SSRF mitigation after GHSA-p9cg-vqcc-grcx: validatePublicUrl allows special-use IPv4 ranges",
"details" : "### Summary\n\nFedify previously addressed SSRF/internal network access in GHSA-p9cg-vqcc-grcx by adding public URL validation before runtime document and media fetching. However, the current IPv4 validation logic appears incomplete.\n\nThe `validatePublicUrl()` protection relies on `isValidPublicIPv4Address()` to reject non-public IPv4 destinations. The function blocks common private and local ranges such as `10.0.0.0/8`, `127.0.0.0/8`, `169.254.0.0/16`, `172.16.0.0/12`, and `192.168.0.0/16`, but it still treats several special-use, reserved, multicast, benchmarking, and carrier-grade NAT IPv4 ranges as valid public destinations.\n\nBecause this validation is used as an SSRF defense before outbound fetches, this appears to be an incomplete mitigation or bypass class for the previous SSRF issue.\n\nI tested this against the current repository code at unreleased version 2.3.0. I used `>=0.11.2, <=2.2.3` as the suspected affected range because 0.11.2 is listed as a patched version for GHSA-p9cg-vqcc-grcx, and this report concerns the post-fix validation logic. Maintainers may adjust the exact affected range.\n\n### Why this is not a duplicate of GHSA-p9cg-vqcc-grcx\n\nGHSA-p9cg-vqcc-grcx covered the original behavior where Fedify fetched ActivityPub object, activity, document, and media URLs without first ensuring that the resolved destination was public.\n\nThis report is about the post-fix validation logic. The current mitigation now performs public URL/IP validation, but the IPv4 classification is incomplete and still treats several special-use ranges as public. Therefore, this is a potential incomplete fix/bypass of the previous SSRF mitigation rather than a re-report of the original issue.\n\nThe affected behavior appears to exist in the patched/current code path, not only in versions listed as vulnerable in the original advisory.\n\n### Affected Code\n\nAffected file:\n\n`packages/vocab-runtime/src/url.ts`\n\nCurrent IPv4 validation logic:\n\n```ts\nexport function isValidPublicIPv4Address(address: string): boolean {\n const parts = address.split(\".\");\n const first = parseInt(parts[0]);\n if (first === 0 || first === 10 || first === 127) return false;\n const second = parseInt(parts[1]);\n if (first === 169 && second === 254) return false;\n if (first === 172 && second >= 16 && second <= 31) return false;\n if (first === 192 && second === 168) return false;\n return true;\n}\n```\n\nThe important point is that the bypass exists in the mitigation logic itself: the function responsible for deciding whether a destination is public returns true for address ranges that are not globally routable public internet destinations.\n\n### Proof of Concept\n\nI reproduced the IPv4 validation behavior using the same logic:\n\n```ts\nfunction isValidPublicIPv4Address(address) {\n const parts = address.split(\".\");\n const first = parseInt(parts[0], 10);\n if (first === 0 || first === 10 || first === 127) return false;\n\n const second = parseInt(parts[1], 10);\n if (first === 169 && second === 254) return false;\n if (first === 172 && second >= 16 && second <= 31) return false;\n if (first === 192 && second === 168) return false;\n\n return true;\n}\n\nconst tests = [\n \"8.8.8.8\",\n \"127.0.0.1\",\n \"10.0.0.1\",\n \"192.168.1.1\",\n \"169.254.169.254\",\n \"100.64.0.1\",\n \"198.18.0.1\",\n \"224.0.0.1\",\n \"240.0.0.1\",\n \"192.0.0.1\",\n \"192.0.2.1\",\n \"198.51.100.1\",\n \"203.0.113.1\"\n];\n\nfor (const ip of tests) {\n console.log(ip + \" => \" + isValidPublicIPv4Address(ip));\n}\n```\n\nObserved output:\n\n```\n8.8.8.8 => true\n127.0.0.1 => false\n10.0.0.1 => false\n192.168.1.1 => false\n169.254.169.254 => false\n100.64.0.1 => true\n198.18.0.1 => true\n224.0.0.1 => true\n240.0.0.1 => true\n192.0.0.1 => true\n192.0.2.1 => true\n198.51.100.1 => true\n203.0.113.1 => true\n```\n\nThe validator correctly blocks some common private and local ranges, but incorrectly allows multiple special-use ranges.\n\n### Examples of incorrectly allowed ranges\n\nImportant examples include:\n\n```\n100.64.0.0/10 Carrier-grade NAT\n198.18.0.0/15 Benchmarking / internal testing networks\n224.0.0.0/4 Multicast\n240.0.0.0/4 Reserved\n192.0.0.0/24 IETF protocol assignments\n```\n\nAdditional correctness examples:\n\n```\n192.0.2.0/24 Documentation range\n198.51.100.0/24 Documentation range\n203.0.113.0/24 Documentation range\n```\n\n## Security Impact\n\nAny Fedify feature that accepts or processes remote ActivityPub object, activity, document, or media URLs and relies on validatePublicUrl() as an SSRF protection boundary may incorrectly allow outbound requests to special-use IPv4 destinations that should not be treated as public internet resources.\n\nThis may allow an attacker-controlled ActivityPub object or media URL to cause a Fedify server to initiate requests to non-public or special-use network ranges, depending on the deployment environment and network routing.\n\nThis is best understood as an incomplete fix/bypass class for the previous SSRF/internal-network-access advisory GHSA-p9cg-vqcc-grcx.\n\n## Suggested Fix\n\nAvoid using a small manual denylist for public IP validation. Instead, validate that the resolved address is globally routable/public.\n\nAt minimum, IPv4 validation should reject all relevant special-use ranges, including:\n\n```\n0.0.0.0/8\n10.0.0.0/8\n100.64.0.0/10\n127.0.0.0/8\n169.254.0.0/16\n172.16.0.0/12\n192.0.0.0/24\n192.0.2.0/24\n192.168.0.0/16\n198.18.0.0/15\n198.51.100.0/24\n203.0.113.0/24\n224.0.0.0/4\n240.0.0.0/4\n```\n\nA safer long-term fix would be to use a maintained IP address classification library that explicitly supports security-sensitive public/global IP validation.\n\nPatch Idea\n\n```ts\nexport function isValidPublicIPv4Address(address: string): boolean {\n const parts = address.split(\".\").map((part) => parseInt(part, 10));\n\n if (\n parts.length !== 4 ||\n parts.some((part) => Number.isNaN(part) || part < 0 || part > 255)\n ) {\n return false;\n }\n\n const [a, b] = parts;\n\n if (a === 0) return false;\n if (a === 10) return false;\n if (a === 100 && b >= 64 && b <= 127) return false;\n if (a === 127) return false;\n if (a === 169 && b === 254) return false;\n if (a === 172 && b >= 16 && b <= 31) return false;\n if (a === 192 && b === 0) return false;\n if (a === 192 && b === 168) return false;\n if (a === 198 && (b === 18 || b === 19)) return false;\n if (a === 198 && b === 51) return false;\n if (a === 203 && b === 0) return false;\n if (a >= 224) return false;\n\n return true;\n}\n```\n\n\n## Advisory Classification Note\n\nI understand this may be classified either as a new advisory or as an update/incomplete fix for GHSA-p9cg-vqcc-grcx. Since the issue appears to affect the validation logic added after the original SSRF fix, and because the affected code is part of the current security boundary for outbound URL fetching, I wanted to report it privately for maintainer review.\n\n## Disclosure Note\n\nThis report does not attempt to access any real internal network service. The proof focuses on the validation decision itself: multiple non-public or special-use IPv4 ranges are accepted as public by the current SSRF protection logic.\n\n\n\n## Researcher\n\nReported by Chaitanya Garware.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/fedify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.11.2"
}, {
"fixed" : "1.9.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/fedify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/fedify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/fedify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/fedify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/vocab-runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/vocab-runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fedify/vocab-runtime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fedify-dev/fedify/security/advisories/GHSA-xw9q-2mv6-9fr8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50131"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fedify-dev/fedify"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1286", "CWE-1389", "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-14T18:15:25Z",
"nvd_published_at" : "2026-06-10T22:17:01Z"
}
}