diff --git a/dojo/tools/dependency_track/parser.py b/dojo/tools/dependency_track/parser.py index 3327559e2f8..04a8fddc72f 100644 --- a/dojo/tools/dependency_track/parser.py +++ b/dojo/tools/dependency_track/parser.py @@ -13,106 +13,6 @@ class DependencyTrackParser: - r""" - A class that can be used to parse the JSON Finding Packaging Format (FPF) export from OWASP Dependency Track. - - See here for more info on this JSON format: https://docs.dependencytrack.org/integrations/file-formats/ - - A typical Finding Packaging Format (FPF) export looks like the following: - - { - "version": "1.3", - "meta" : { - "application": "Dependency-Track", - "version": "4.5.0", - "timestamp": "2022-02-18T23:31:42Z", - "baseUrl": "http://dtrack.example.org" - }, - "project" : { - "uuid": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", - "name": "Acme Example", - "version": "1.0", - "description": "A sample application" - }, - "findings" : [ - { - "component": { - "uuid": "b815b581-fec1-4374-a871-68862a8f8d52", - "name": "timespan", - "version": "2.3.0", - "purl": "pkg:npm/timespan@2.3.0", - "latestVersion": "3.2.0" - }, - "vulnerability": { - "uuid": "115b80bb-46c4-41d1-9f10-8a175d4abb46", - "source": "NPM", - "vulnId": "533", - "title": "Regular Expression Denial of Service", - "subtitle": "timespan", - "severity": "LOW", - "severityRank": 3, - "cvssV2Vector": "CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P", - "cvssV3Vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", - "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N", - "references": "* [https://example.com](https://example.com)\n* [https://example.org](https://example.org)", - "published": "2025-07-11 03:16:03.563", - "cweId": 400, - "cweName": "Uncontrolled Resource Consumption ('Resource Exhaustion')", - "cwes": [ - { - "cweId": 400, - "name": "Uncontrolled Resource Consumption ('Resource Exhaustion')" - } - ], - "description": "Affected versions of `timespan`...", - "recommendation": "No direct patch is available..." - }, - "analysis": { - "state": "NOT_SET", - "isSuppressed": false - }, - "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:b815b581-fec1-4374-a871-68862a8f8d52:115b80bb-46c4-41d1-9f10-8a175d4abb46" - }, - { - "component": { - "uuid": "979f87f5-eaf5-4095-9d38-cde17bf9228e", - "name": "uglify-js", - "version": "2.4.24", - "purl": "pkg:npm/uglify-js@2.4.24" - }, - "vulnerability": { - "uuid": "701a3953-666b-4b7a-96ca-e1e6a3e1def3", - "source": "NPM", - "vulnId": "48", - "aliases": [ - { - "cveId": "CVE-2022-2053", - "ghsaId": "GHSA-95rf-557x-44g5" - } - ], - "title": "Regular Expression Denial of Service", - "subtitle": "uglify-js", - "severity": "LOW", - "severityRank": 3, - "cweId": 400, - "cweName": "Uncontrolled Resource Consumption ('Resource Exhaustion')", - "cwes": [ - { - "cweId": 400, - "name": "Uncontrolled Resource Consumption ('Resource Exhaustion')" - } - ], - "description": "Versions of `uglify-js` prior to...", - "recommendation": "Update to version 2.6.0 or later." - }, - "analysis": { - "isSuppressed": false - }, - "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:979f87f5-eaf5-4095-9d38-cde17bf9228e:701a3953-666b-4b7a-96ca-e1e6a3e1def3" - }] - } - """ - def _convert_dependency_track_severity_to_dojo_severity(self, dependency_track_severity): """ Converts a Dependency Track severity to a DefectDojo severity. @@ -171,23 +71,14 @@ def _convert_dependency_track_finding_to_dojo_finding(self, dependency_track_fin title = f"{component_name}:{version_description} affected by: {vuln_id} ({source})" - # We should collect all the vulnerability ids, the FPF format can add additional IDs as aliases - # we add these aliases in the vulnerability_id list making sure duplicate findings get correctly deduplicated - # older version of Dependency-track might not include these field therefore lets check first - if dependency_track_finding["vulnerability"].get("aliases"): - # There can be multiple alias entries - set_of_ids = set() - set_of_sources = {"cveId", "sonatypeId", "ghsaId", "osvId", "snykId", "gsdId", "vulnDbId"} - for alias in dependency_track_finding["vulnerability"]["aliases"]: - for source in set_of_sources: - if source in alias: - set_of_ids.add(alias[source]) - vulnerability_id = list(set_of_ids) - else: - # The vulnId is not always a CVE (e.g. if the vulnerability is not from the NVD source) - # So here we set the cve for the DefectDojo finding to null unless the source of the - # Dependency Track vulnerability is NVD - vulnerability_id = [vuln_id] if source is not None and source.upper() == "NVD" else None + # Collect all vulnerability IDs: vulnId itself plus any aliases + set_of_ids = {vuln_id} + set_of_alias_sources = {"cveId", "sonatypeId", "ghsaId", "osvId", "snykId", "gsdId", "vulnDbId"} + for alias in dependency_track_finding["vulnerability"].get("aliases") or []: + for alias_source in set_of_alias_sources: + if alias_source in alias: + set_of_ids.add(alias[alias_source]) + vulnerability_id = list(set_of_ids) # Default CWE to CWE-1035 Using Components with Known Vulnerabilities if there is no CWE if "cweId" in dependency_track_finding["vulnerability"] and dependency_track_finding["vulnerability"]["cweId"] is not None: diff --git a/unittests/scans/dependency_track/deptrack_npm_4.14.1.json b/unittests/scans/dependency_track/deptrack_npm_4.14.1.json new file mode 100644 index 00000000000..53177c01eda --- /dev/null +++ b/unittests/scans/dependency_track/deptrack_npm_4.14.1.json @@ -0,0 +1,1062 @@ +{ + "meta": { + "baseUrl": "http://dtrack.example.org", + "application": "Dependency-Track", + "version": "4.14.1", + "timestamp": "2026-04-24T19:39:49Z" + }, + "findings": [ + { + "component": { + "name": "brace-expansion", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/brace-expansion@2.0.3", + "uuid": "15771e87-9e7f-4931-a704-315662572101", + "version": "2.0.3", + "latestVersion": "5.0.5" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-07 23:55:09.748" + }, + "vulnerability": { + "severity": "CRITICAL", + "vulnId": "CVE-2026-25547", + "aliases": [ + { + "ghsaId": "GHSA-7h2j-956f-4vf2", + "cveId": "CVE-2026-25547" + } + ], + "references": "* [https://github.com/isaacs/brace-expansion/security/advisories/GHSA-7h2j-956f-4vf2](https://github.com/isaacs/brace-expansion/security/advisories/GHSA-7h2j-956f-4vf2)", + "cvssV4Score": 9.2, + "cweId": 1333, + "description": "@isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1, @isaacs/brace-expansion is vulnerable to a denial of service (DoS) issue caused by unbounded brace range expansion. When an attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process. This issue has been patched in version 5.0.1.", + "epssScore": 0.0002, + "source": "NVD", + "published": "2026-02-04 22:16:00.813", + "cwes": [ + { + "cweId": 1333, + "name": "Inefficient Regular Expression Complexity" + } + ], + "uuid": "07997273-7f39-4b42-8785-0b24fcad85cb", + "severityRank": 0, + "cweName": "Inefficient Regular Expression Complexity", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H", + "epssPercentile": 0.05566 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:15771e87-9e7f-4931-a704-315662572101:07997273-7f39-4b42-8785-0b24fcad85cb", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "brace-expansion", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/brace-expansion@1.1.13", + "uuid": "21eba8f2-7ac0-445f-a834-bfee3f27b77c", + "version": "1.1.13", + "latestVersion": "5.0.5" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-07 23:55:12.577" + }, + "vulnerability": { + "severity": "CRITICAL", + "vulnId": "CVE-2026-25547", + "aliases": [ + { + "ghsaId": "GHSA-7h2j-956f-4vf2", + "cveId": "CVE-2026-25547" + } + ], + "references": "* [https://github.com/isaacs/brace-expansion/security/advisories/GHSA-7h2j-956f-4vf2](https://github.com/isaacs/brace-expansion/security/advisories/GHSA-7h2j-956f-4vf2)", + "cvssV4Score": 9.2, + "cweId": 1333, + "description": "@isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1, @isaacs/brace-expansion is vulnerable to a denial of service (DoS) issue caused by unbounded brace range expansion. When an attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process. This issue has been patched in version 5.0.1.", + "epssScore": 0.0002, + "source": "NVD", + "published": "2026-02-04 22:16:00.813", + "cwes": [ + { + "cweId": 1333, + "name": "Inefficient Regular Expression Complexity" + } + ], + "uuid": "07997273-7f39-4b42-8785-0b24fcad85cb", + "severityRank": 0, + "cweName": "Inefficient Regular Expression Complexity", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H", + "epssPercentile": 0.05566 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:21eba8f2-7ac0-445f-a834-bfee3f27b77c:07997273-7f39-4b42-8785-0b24fcad85cb", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "axios", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/axios@1.13.6", + "uuid": "4589322c-61b1-49bf-b38f-9a92cf588681", + "version": "1.13.6", + "latestVersion": "1.15.2" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-09 23:55:24.846" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 4.8, + "vulnId": "GHSA-3p68-rc4w-qgx5", + "aliases": [ + { + "ghsaId": "GHSA-3p68-rc4w-qgx5", + "cveId": "CVE-2025-62718" + } + ], + "references": "* [https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5](https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5)\n* [https://nvd.nist.gov/vuln/detail/CVE-2025-62718](https://nvd.nist.gov/vuln/detail/CVE-2025-62718)\n* [https://github.com/axios/axios/pull/10661](https://github.com/axios/axios/pull/10661)\n* [https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df](https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df)\n* [https://datatracker.ietf.org/doc/html/rfc1034#section-3.1](https://datatracker.ietf.org/doc/html/rfc1034#section-3.1)\n* [https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2)\n* [https://github.com/axios/axios/releases/tag/v1.15.0](https://github.com/axios/axios/releases/tag/v1.15.0)\n* [https://github.com/axios/axios/pull/10688](https://github.com/axios/axios/pull/10688)\n* [https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c](https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c)\n* [https://github.com/axios/axios/releases/tag/v0.31.0](https://github.com/axios/axios/releases/tag/v0.31.0)\n* [https://github.com/advisories/GHSA-3p68-rc4w-qgx5](https://github.com/advisories/GHSA-3p68-rc4w-qgx5)", + "cvssV4Score": 6.3, + "cweId": 441, + "description": "Axios does not correctly handle hostname normalization when checking `NO_PROXY` rules.\nRequests to loopback addresses like `localhost.` (with a trailing dot) or `[::1]` (IPv6 literal) skip `NO_PROXY` matching and go through the configured proxy.\n\nThis goes against what developers expect and lets attackers force requests through a proxy, even if `NO_PROXY` is set up to protect loopback or internal services.\n\nAccording to [RFC 1034 §3.1](https://datatracker.ietf.org/doc/html/rfc1034#section-3.1) and [RFC 3986 §3.2.2](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2), a hostname can have a trailing dot to show it is a fully qualified domain name (FQDN). At the DNS level, `localhost.` is the same as `localhost`. \nHowever, Axios does a literal string comparison instead of normalizing hostnames before checking `NO_PROXY`. This causes requests like `http://localhost.:8080/` and `http://[::1]:8080/` to be incorrectly proxied.\n\nThis issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections.\n\n---\n\n**PoC**\n\n```js\nimport http from \"http\";\nimport axios from \"axios\";\n\nconst proxyPort = 5300;\n\nhttp.createServer((req, res) => {\n console.log(\"[PROXY] Got:\", req.method, req.url, \"Host:\", req.headers.host);\n res.writeHead(200, { \"Content-Type\": \"text/plain\" });\n res.end(\"proxied\");\n}).listen(proxyPort, () => console.log(\"Proxy\", proxyPort));\n\nprocess.env.HTTP_PROXY = `http://127.0.0.1:${proxyPort}`;\nprocess.env.NO_PROXY = \"localhost,127.0.0.1,::1\";\n\nasync function test(url) {\n try {\n await axios.get(url, { timeout: 2000 });\n } catch {}\n}\n\nsetTimeout(async () => {\n console.log(\"\\n[*] Testing http://localhost.:8080/\");\n await test(\"http://localhost.:8080/\"); // goes through proxy\n\n console.log(\"\\n[*] Testing http://[::1]:8080/\");\n await test(\"http://[::1]:8080/\"); // goes through proxy\n}, 500);\n```\n\n**Expected:** Requests bypass the proxy (direct to loopback).\n**Actual:** Proxy logs requests for `localhost.` and `[::1]`.\n\n---\n\n**Impact**\n\n* Applications that rely on `NO_PROXY=localhost,127.0.0.1,::1` for protecting loopback/internal access are vulnerable.\n* Attackers controlling request URLs can:\n\n * Force Axios to send local traffic through an attacker-controlled proxy.\n * Bypass SSRF mitigations relying on NO\\_PROXY rules.\n * Potentially exfiltrate sensitive responses from internal services via the proxy.\n \n \n---\n\n**Affected Versions**\n\n* Confirmed on Axios **1.12.2** (latest at time of testing).\n* affects all versions that rely on Axios\u2019 current `NO_PROXY` evaluation.\n\n---\n\n**Remediation**\nAxios should normalize hostnames before evaluating `NO_PROXY`, including:\n\n* Strip trailing dots from hostnames (per RFC 3986).\n* Normalize IPv6 literals by removing brackets for matching.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N", + "epssScore": 0.00034, + "source": "GITHUB", + "published": "2026-04-09 17:32:19.0", + "title": "Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF", + "cwes": [ + { + "cweId": 441, + "name": "Unintended Proxy or Intermediary ('Confused Deputy')" + }, + { + "cweId": 918, + "name": "Server-Side Request Forgery (SSRF)" + } + ], + "uuid": "2e7ae170-4d94-43c4-bb2b-b7baf24c2148", + "severityRank": 2, + "cweName": "Unintended Proxy or Intermediary ('Confused Deputy')", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N", + "epssPercentile": 0.09709 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:4589322c-61b1-49bf-b38f-9a92cf588681:2e7ae170-4d94-43c4-bb2b-b7baf24c2148", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "axios", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/axios@1.13.6", + "uuid": "4589322c-61b1-49bf-b38f-9a92cf588681", + "version": "1.13.6", + "latestVersion": "1.15.2" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-10 12:06:59.235" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 9.9, + "vulnId": "CVE-2025-62718", + "aliases": [ + { + "ghsaId": "GHSA-3p68-rc4w-qgx5", + "cveId": "CVE-2025-62718" + } + ], + "references": "* [https://datatracker.ietf.org/doc/html/rfc1034#section-3.1](https://datatracker.ietf.org/doc/html/rfc1034#section-3.1)\n* [https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2)\n* [https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c](https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c)\n* [https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df](https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df)\n* [https://github.com/axios/axios/pull/10661](https://github.com/axios/axios/pull/10661)\n* [https://github.com/axios/axios/pull/10688](https://github.com/axios/axios/pull/10688)\n* [https://github.com/axios/axios/releases/tag/v0.31.0](https://github.com/axios/axios/releases/tag/v0.31.0)\n* [https://github.com/axios/axios/releases/tag/v1.15.0](https://github.com/axios/axios/releases/tag/v1.15.0)\n* [https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5](https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5)", + "cvssV4Score": 6.3, + "cweId": 441, + "description": "Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.31.0, Axios does not correctly handle hostname normalization when checking NO_PROXY rules. Requests to loopback addresses like localhost. (with a trailing dot) or [::1] (IPv6 literal) skip NO_PROXY matching and go through the configured proxy. This goes against what developers expect and lets attackers force requests through a proxy, even if NO_PROXY is set up to protect loopback or internal services. This issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections. This vulnerability is fixed in 1.15.0 and 0.31.0.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L", + "epssScore": 0.00035, + "source": "NVD", + "published": "2026-04-09 15:16:08.65", + "cwes": [ + { + "cweId": 441, + "name": "Unintended Proxy or Intermediary ('Confused Deputy')" + }, + { + "cweId": 918, + "name": "Server-Side Request Forgery (SSRF)" + } + ], + "uuid": "7a287e6d-2df0-47a7-974d-81d49e533223", + "severityRank": 2, + "cweName": "Unintended Proxy or Intermediary ('Confused Deputy')", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N", + "epssPercentile": 0.10437 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:4589322c-61b1-49bf-b38f-9a92cf588681:7a287e6d-2df0-47a7-974d-81d49e533223", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "next", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/next@16.2.1", + "uuid": "06396b4a-576c-43b0-bb8d-62f4f07c0be5", + "version": "16.2.1", + "latestVersion": "16.2.4" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-10 23:55:15.494" + }, + "vulnerability": { + "severity": "HIGH", + "cvssV3BaseScore": 7.5, + "vulnId": "GHSA-q4gf-8mx6-v5v3", + "aliases": [], + "references": "* [https://github.com/vercel/next.js/security/advisories/GHSA-q4gf-8mx6-v5v3](https://github.com/vercel/next.js/security/advisories/GHSA-q4gf-8mx6-v5v3)\n* [https://vercel.com/changelog/summary-of-cve-2026-23869](https://vercel.com/changelog/summary-of-cve-2026-23869)\n* [https://github.com/advisories/GHSA-q4gf-8mx6-v5v3](https://github.com/advisories/GHSA-q4gf-8mx6-v5v3)", + "cweId": 770, + "description": "A vulnerability affects certain React Server Components packages for versions 19.x and frameworks that use the affected packages, including Next.js 13.x, 14.x, 15.x, and 16.x using the App Router. The issue is tracked upstream as [CVE-2026-23869](https://github.com/facebook/react/security/advisories/GHSA-479c-33wc-g2pg). You can read more about this advisory our [this changelog](https://vercel.com/changelog/summary-of-cve-2026-23869).\n\nA specially crafted HTTP request can be sent to any App Router Server Function endpoint that, when deserialized, may trigger excessive CPU usage. This can result in denial of service in unpatched environments.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", + "source": "GITHUB", + "published": "2026-04-10 15:35:47.0", + "title": "Next.js has a Denial of Service with Server Components", + "cwes": [ + { + "cweId": 770, + "name": "Allocation of Resources Without Limits or Throttling" + } + ], + "uuid": "37113a35-749a-461e-97bd-1c509feb4814", + "severityRank": 1, + "cweName": "Allocation of Resources Without Limits or Throttling" + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:06396b4a-576c-43b0-bb8d-62f4f07c0be5:37113a35-749a-461e-97bd-1c509feb4814", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "axios", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/axios@1.13.6", + "uuid": "4589322c-61b1-49bf-b38f-9a92cf588681", + "version": "1.13.6", + "latestVersion": "1.15.2" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-10 23:55:16.727" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 4.8, + "vulnId": "GHSA-fvcv-3m26-pcqx", + "aliases": [ + { + "ghsaId": "GHSA-fvcv-3m26-pcqx", + "cveId": "CVE-2026-40175" + } + ], + "references": "* [https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx](https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx)\n* [https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1](https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1)\n* [https://github.com/axios/axios/releases/tag/v1.15.0](https://github.com/axios/axios/releases/tag/v1.15.0)\n* [https://nvd.nist.gov/vuln/detail/CVE-2026-40175](https://nvd.nist.gov/vuln/detail/CVE-2026-40175)\n* [https://github.com/axios/axios/pull/10660](https://github.com/axios/axios/pull/10660)\n* [https://github.com/axios/axios/pull/10660#issuecomment-4224168081](https://github.com/axios/axios/pull/10660#issuecomment-4224168081)\n* [https://github.com/axios/axios/pull/10688](https://github.com/axios/axios/pull/10688)\n* [https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c](https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c)\n* [https://github.com/axios/axios/releases/tag/v0.31.0](https://github.com/axios/axios/releases/tag/v0.31.0)\n* [https://github.com/advisories/GHSA-fvcv-3m26-pcqx](https://github.com/advisories/GHSA-fvcv-3m26-pcqx)", + "cweId": 113, + "description": "# Vulnerability Disclosure: Unrestricted Cloud Metadata Exfiltration via Header Injection Chain\n\n## Summary\nThe Axios library is vulnerable to a specific \"Gadget\" attack chain that allows **Prototype Pollution** in any third-party dependency to be escalated into **Remote Code Execution (RCE)** or **Full Cloud Compromise** (via AWS IMDSv2 bypass).\n\nWhile Axios patches exist for *preventing check* pollution, the library remains vulnerable to *being used* as a gadget when pollution occurs elsewhere. This is due to a lack of HTTP Header Sanitization (CWE-113) combined with default SSRF capabilities.\n\n**Severity**: Critical (CVSS 9.9)\n**Affected Versions**: All versions (v0.x - v1.x)\n**Vulnerable Component**: `lib/adapters/http.js` (Header Processing)\n\n## Usage of \"Helper\" Vulnerabilities\nThis vulnerability is unique because it requires **Zero Direct User Input**.\nIf an attacker can pollute `Object.prototype` via *any* other library in the stack (e.g., `qs`, `minimist`, `ini`, `body-parser`), Axios will automatically pick up the polluted properties during its config merge.\n\nBecause Axios does not sanitise these merged header values for CRLF (`\\r\\n`) characters, the polluted property becomes a **Request Smuggling** payload.\n\n## Proof of Concept\n\n### 1. The Setup (Simulated Pollution)\nImagine a scenario where a known vulnerability exists in a query parser. The attacker sends a payload that sets:\n```javascript\nObject.prototype['x-amz-target'] = \"dummy\\r\\n\\r\\nPUT /latest/api/token HTTP/1.1\\r\\nHost: 169.254.169.254\\r\\nX-aws-ec2-metadata-token-ttl-seconds: 21600\\r\\n\\r\\nGET /ignore\";\n```\n\n### 2. The Gadget Trigger (Safe Code)\nThe application makes a completely safe, hardcoded request:\n```javascript\n// This looks safe to the developer\nawait axios.get('https://analytics.internal/pings'); \n```\n\n### 3. The Execution\nAxios merges the prototype property `x-amz-target` into the request headers. It then writes the header value directly to the socket without validation.\n\n**Resulting HTTP traffic:**\n```http\nGET /pings HTTP/1.1\nHost: analytics.internal\nx-amz-target: dummy\n\nPUT /latest/api/token HTTP/1.1\nHost: 169.254.169.254\nX-aws-ec2-metadata-token-ttl-seconds: 21600\n\nGET /ignore HTTP/1.1\n...\n```\n\n### 4. The Impact (IMDSv2 Bypass)\nThe \"Smuggled\" second request is a valid `PUT` request to the AWS Metadata Service. It includes the required `X-aws-ec2-metadata-token-ttl-seconds` header (which a normal SSRF cannot send).\nThe Metadata Service returns a session token, allowing the attacker to steal IAM credentials and compromise the cloud account.\n\n## Impact Analysis\n- **Security Control Bypass**: Defeats AWS IMDSv2 (Session Tokens).\n- **Authentication Bypass**: Can inject headers (`Cookie`, `Authorization`) to pivot into internal administrative panels.\n- **Cache Poisoning**: Can inject `Host` headers to poison shared caches.\n\n## Recommended Fix\nValidate all header values in `lib/adapters/http.js` and `xhr.js` before passing them to the underlying request function.\n\n**Patch Suggestion:**\n```javascript\n// In lib/adapters/http.js\nutils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (/[\\r\\n]/.test(val)) {\n throw new Error('Security: Header value contains invalid characters');\n }\n // ... proceed to set header\n});\n```\n\n## References\n- **OWASP**: CRLF Injection (CWE-113)\n\nThis report was generated as part of a security audit of the Axios library.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N", + "epssScore": 0.00403, + "source": "GITHUB", + "published": "2026-04-10 19:47:16.0", + "title": "Axios has Unrestricted Cloud Metadata Exfiltration via Header Injection Chain", + "cwes": [ + { + "cweId": 113, + "name": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')" + }, + { + "cweId": 444, + "name": "Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')" + }, + { + "cweId": 918, + "name": "Server-Side Request Forgery (SSRF)" + } + ], + "uuid": "4186850a-7d0b-4f16-8e09-6fed5fea5264", + "severityRank": 2, + "cweName": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')", + "epssPercentile": 0.60949 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:4589322c-61b1-49bf-b38f-9a92cf588681:4186850a-7d0b-4f16-8e09-6fed5fea5264", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "next-intl", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/next-intl@4.8.3", + "uuid": "1a0ff72f-8ce5-4d27-ba9e-89e4e8ee11ba", + "version": "4.8.3", + "latestVersion": "4.9.1" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-10 23:55:18.598" + }, + "vulnerability": { + "severity": "MEDIUM", + "vulnId": "GHSA-8f24-v5vv-gm5j", + "aliases": [ + { + "ghsaId": "GHSA-8f24-v5vv-gm5j", + "cveId": "CVE-2026-40299" + } + ], + "references": "* [https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j](https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j)\n* [https://github.com/amannn/next-intl/pull/2304](https://github.com/amannn/next-intl/pull/2304)\n* [https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6](https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6)\n* [https://github.com/amannn/next-intl/releases/tag/v4.9.1](https://github.com/amannn/next-intl/releases/tag/v4.9.1)\n* [https://github.com/advisories/GHSA-8f24-v5vv-gm5j](https://github.com/advisories/GHSA-8f24-v5vv-gm5j)", + "cvssV4Score": 6.9, + "cweId": 601, + "description": "### Impact\n\nApplications using the `next-intl` middleware with `localePrefix: 'as-needed'` could construct URLs where path handling and the WHATWG URL parser resolved a relative redirect target to another host (e.g. scheme-relative `//` or control characters stripped by the URL parser), so the middleware could redirect the browser off-site while the user still started from a trusted app URL.\n\n### Patches\n\nThe problem has been patched, please update to [`next-intl@4.9.1`](https://github.com/amannn/next-intl/releases/tag/v4.9.1).\n\n### Credits\n\nMany thanks to [Joni Liljeblad](https://github.com/joniumGit) from [Oura](https://ouraring.com) for responsibly disclosing the vulnerability and for suggesting the fix.", + "source": "GITHUB", + "published": "2026-04-10 21:03:55.0", + "title": "next-intl has an open redirect vulnerability", + "cwes": [ + { + "cweId": 601, + "name": "URL Redirection to Untrusted Site ('Open Redirect')" + } + ], + "uuid": "745542e0-0dc8-477a-a38e-5e60c8ff6613", + "severityRank": 2, + "cweName": "URL Redirection to Untrusted Site ('Open Redirect')", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N" + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:1a0ff72f-8ce5-4d27-ba9e-89e4e8ee11ba:745542e0-0dc8-477a-a38e-5e60c8ff6613", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "axios", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/axios@1.13.6", + "uuid": "4589322c-61b1-49bf-b38f-9a92cf588681", + "version": "1.13.6", + "latestVersion": "1.15.2" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-11 23:55:03.875" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 4.8, + "vulnId": "CVE-2026-40175", + "aliases": [ + { + "ghsaId": "GHSA-fvcv-3m26-pcqx", + "cveId": "CVE-2026-40175" + } + ], + "references": "* [https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c](https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c)\n* [https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1](https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1)\n* [https://github.com/axios/axios/pull/10660](https://github.com/axios/axios/pull/10660)\n* [https://github.com/axios/axios/pull/10660#issuecomment-4224168081](https://github.com/axios/axios/pull/10660#issuecomment-4224168081)\n* [https://github.com/axios/axios/pull/10688](https://github.com/axios/axios/pull/10688)\n* [https://github.com/axios/axios/releases/tag/v0.31.0](https://github.com/axios/axios/releases/tag/v0.31.0)\n* [https://github.com/axios/axios/releases/tag/v1.15.0](https://github.com/axios/axios/releases/tag/v1.15.0)\n* [https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx](https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx)", + "cweId": 113, + "description": "Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.3.1, the Axios library is vulnerable to a specific \"Gadget\" attack chain that allows Prototype Pollution in any third-party dependency to be escalated into Remote Code Execution (RCE) or Full Cloud Compromise (via AWS IMDSv2 bypass). This vulnerability is fixed in 1.15.0 and 0.3.1.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N", + "epssScore": 0.00028, + "source": "NVD", + "published": "2026-04-10 20:16:22.8", + "cwes": [ + { + "cweId": 113, + "name": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')" + }, + { + "cweId": 444, + "name": "Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')" + }, + { + "cweId": 918, + "name": "Server-Side Request Forgery (SSRF)" + } + ], + "uuid": "c2a1d8da-f348-4121-b7fb-9760f74ef851", + "severityRank": 2, + "cweName": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')", + "epssPercentile": 0.07911 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:4589322c-61b1-49bf-b38f-9a92cf588681:c2a1d8da-f348-4121-b7fb-9760f74ef851", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "next-intl", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/next-intl@4.8.3", + "uuid": "1a0ff72f-8ce5-4d27-ba9e-89e4e8ee11ba", + "version": "4.8.3", + "latestVersion": "4.9.1" + }, + "attribution": { + "alternateIdentifier": "CVE-2026-40299", + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-13 23:55:45.326", + "referenceUrl": "https://ossindex.sonatype.org/vulnerability/CVE-2026-40299?component-type=npm&component-name=next-intl&utm_source=dependency-track&utm_medium=integration&utm_content=v4.14.0" + }, + "vulnerability": { + "severity": "MEDIUM", + "vulnId": "CVE-2026-40299", + "aliases": [ + { + "ghsaId": "GHSA-8f24-v5vv-gm5j", + "cveId": "CVE-2026-40299" + } + ], + "references": "* [https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6](https://github.com/amannn/next-intl/commit/1c80b668aa6d853f470319eec10a3f61e78a70e6)\n* [https://github.com/amannn/next-intl/pull/2304](https://github.com/amannn/next-intl/pull/2304)\n* [https://github.com/amannn/next-intl/releases/tag/v4.9.1](https://github.com/amannn/next-intl/releases/tag/v4.9.1)\n* [https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j](https://github.com/amannn/next-intl/security/advisories/GHSA-8f24-v5vv-gm5j)", + "cvssV4Score": 6.9, + "cweId": 601, + "description": "next-intl provides internationalization for Next.js. Applications using the `next-intl` middleware prior to version 4.9.1with `localePrefix: 'as-needed'` could construct URLs where path handling and the WHATWG URL parser resolved a relative redirect target to another host (e.g. scheme-relative `//` or control characters stripped by the URL parser), so the middleware could redirect the browser off-site while the user still started from a trusted app URL. The problem has been patchedin `next-intl@4.9.1`.", + "epssScore": 0.00054, + "source": "NVD", + "published": "2026-04-17 21:16:34.707", + "cwes": [ + { + "cweId": 601, + "name": "URL Redirection to Untrusted Site ('Open Redirect')" + } + ], + "uuid": "27228620-102e-44d2-8346-92644c4aef52", + "severityRank": 2, + "cweName": "URL Redirection to Untrusted Site ('Open Redirect')", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N", + "epssPercentile": 0.16817 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:1a0ff72f-8ce5-4d27-ba9e-89e4e8ee11ba:27228620-102e-44d2-8346-92644c4aef52", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "follow-redirects", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/follow-redirects@1.15.11", + "uuid": "e10eabcb-458b-4d95-8f58-df246c57b358", + "version": "1.15.11", + "latestVersion": "1.16.0" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-14 12:14:57.951" + }, + "vulnerability": { + "severity": "MEDIUM", + "vulnId": "GHSA-r4q5-vmmm-2653", + "aliases": [], + "references": "* [https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653](https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653)\n* [https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9](https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9)\n* [https://github.com/advisories/GHSA-r4q5-vmmm-2653](https://github.com/advisories/GHSA-r4q5-vmmm-2653)", + "cvssV4Score": 6.9, + "cweId": 200, + "description": "## Summary\n\nWhen an HTTP request follows a cross-domain redirect (301/302/307/308), `follow-redirects` only strips `authorization`, `proxy-authorization`, and `cookie` headers (matched by regex at index.js:469-476). Any custom authentication header (e.g., `X-API-Key`, `X-Auth-Token`, `Api-Key`, `Token`) is forwarded verbatim to the redirect target.\n\nSince `follow-redirects` is the redirect-handling dependency for **axios** (105K+ stars), this vulnerability affects the entire axios ecosystem.\n\n## Affected Code\n\n`index.js`, lines 469-476:\n\n```javascript\nif (redirectUrl.protocol !== currentUrlParts.protocol &&\n redirectUrl.protocol !== \"https:\" ||\n redirectUrl.host !== currentHost &&\n !isSubdomain(redirectUrl.host, currentHost)) {\n removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);\n}\n```\n\nThe regex only matches `authorization`, `proxy-authorization`, and `cookie`. Custom headers like `X-API-Key` are not matched.\n\n## Attack Scenario\n\n1. App uses axios with custom auth header: `headers: { 'X-API-Key': 'sk-live-secret123' }`\n2. Server returns `302 Location: https://evil.com/steal`\n3. follow-redirects sends `X-API-Key: sk-live-secret123` to `evil.com`\n4. Attacker captures the API key\n\n## Impact\n\nAny custom auth header set via axios leaks on cross-domain redirect. Extremely common pattern. Affects all axios users in Node.js.\n\n## Suggested Fix\n\nAdd a `sensitiveHeaders` option that users can extend, or strip ALL non-standard headers on cross-domain redirect.\n\n## Disclosure\n\nSource code review, manually verified. Found 2026-03-20.", + "source": "GITHUB", + "published": "2026-04-14 01:11:11.0", + "title": "follow-redirects leaks Custom Authentication Headers to Cross-Domain Redirect Targets", + "cwes": [ + { + "cweId": 200, + "name": "Exposure of Sensitive Information to an Unauthorized Actor" + } + ], + "uuid": "b5b25644-060f-455a-9465-67da1da6e22a", + "severityRank": 2, + "cweName": "Exposure of Sensitive Information to an Unauthorized Actor", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N" + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:e10eabcb-458b-4d95-8f58-df246c57b358:b5b25644-060f-455a-9465-67da1da6e22a", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "axios", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/axios@1.13.6", + "uuid": "4589322c-61b1-49bf-b38f-9a92cf588681", + "version": "1.13.6", + "latestVersion": "1.15.2" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-15 23:20:19.548" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 9.9, + "vulnId": "CVE-2025-62718", + "aliases": [ + { + "ghsaId": "GHSA-3p68-rc4w-qgx5", + "cveId": "CVE-2025-62718" + } + ], + "references": "* [https://datatracker.ietf.org/doc/html/rfc1034#section-3.1](https://datatracker.ietf.org/doc/html/rfc1034#section-3.1)\n* [https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2)\n* [https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c](https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c)\n* [https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df](https://github.com/axios/axios/commit/fb3befb6daac6cad26b2e54094d0f2d9e47f24df)\n* [https://github.com/axios/axios/pull/10661](https://github.com/axios/axios/pull/10661)\n* [https://github.com/axios/axios/pull/10688](https://github.com/axios/axios/pull/10688)\n* [https://github.com/axios/axios/releases/tag/v0.31.0](https://github.com/axios/axios/releases/tag/v0.31.0)\n* [https://github.com/axios/axios/releases/tag/v1.15.0](https://github.com/axios/axios/releases/tag/v1.15.0)\n* [https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5](https://github.com/axios/axios/security/advisories/GHSA-3p68-rc4w-qgx5)", + "cvssV4Score": 6.3, + "cweId": 441, + "description": "Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.31.0, Axios does not correctly handle hostname normalization when checking NO_PROXY rules. Requests to loopback addresses like localhost. (with a trailing dot) or [::1] (IPv6 literal) skip NO_PROXY matching and go through the configured proxy. This goes against what developers expect and lets attackers force requests through a proxy, even if NO_PROXY is set up to protect loopback or internal services. This issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections. This vulnerability is fixed in 1.15.0 and 0.31.0.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L", + "epssScore": 0.00035, + "source": "NVD", + "published": "2026-04-09 15:16:08.65", + "cwes": [ + { + "cweId": 441, + "name": "Unintended Proxy or Intermediary ('Confused Deputy')" + }, + { + "cweId": 918, + "name": "Server-Side Request Forgery (SSRF)" + } + ], + "uuid": "7a287e6d-2df0-47a7-974d-81d49e533223", + "severityRank": 2, + "cweName": "Unintended Proxy or Intermediary ('Confused Deputy')", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N", + "epssPercentile": 0.10437 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:4589322c-61b1-49bf-b38f-9a92cf588681:7a287e6d-2df0-47a7-974d-81d49e533223", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "dompurify", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/dompurify@3.3.3", + "uuid": "c3cf13d0-de48-4aae-ad53-710da9a90825", + "version": "3.3.3", + "latestVersion": "3.4.1" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-16 11:11:53.186" + }, + "vulnerability": { + "severity": "MEDIUM", + "vulnId": "GHSA-39q2-94rc-95cp", + "aliases": [], + "references": "* [https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp](https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp)\n* [https://github.com/advisories/GHSA-39q2-94rc-95cp](https://github.com/advisories/GHSA-39q2-94rc-95cp)", + "cvssV4Score": 5.3, + "cweId": 783, + "description": "## Summary\nIn `src/purify.ts:1117-1123`, `ADD_TAGS` as a function (via `EXTRA_ELEMENT_HANDLING.tagCheck`) bypasses `FORBID_TAGS` due to short-circuit evaluation.\n\nThe condition:\n```\n!(tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])\n```\nWhen `tagCheck(tagName)` returns `true`, the entire condition is `false` and the element is kept \u2014 `FORBID_TAGS[tagName]` is never evaluated.\n\n## Inconsistency\nThis contradicts the attribute-side pattern at line 1214 where `FORBID_ATTR` explicitly wins first:\n```\nif (FORBID_ATTR[lcName]) { continue; }\n```\nFor tags, FORBID should also take precedence over ADD.\n\n## Impact\nApplications using both `ADD_TAGS` as a function and `FORBID_TAGS` simultaneously get unexpected behavior \u2014 forbidden tags are allowed through. Config-dependent but a genuine logic inconsistency.\n\n## Suggested Fix\nCheck `FORBID_TAGS` before `tagCheck`:\n```\nif (FORBID_TAGS[tagName]) { /* remove */ }\nelse if (tagCheck(tagName) || ALLOWED_TAGS[tagName]) { /* keep */ }\n```\n\n## Affected Version\nv3.3.3 (commit 883ac15)", + "source": "GITHUB", + "published": "2026-04-16 00:46:35.0", + "title": "DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation", + "cwes": [ + { + "cweId": 783, + "name": "Operator Precedence Logic Error" + } + ], + "uuid": "84e708ba-e52d-4467-ab28-92f8af65e560", + "severityRank": 2, + "cweName": "Operator Precedence Logic Error", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N" + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:c3cf13d0-de48-4aae-ad53-710da9a90825:84e708ba-e52d-4467-ab28-92f8af65e560", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "follow-redirects", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/follow-redirects@1.15.11", + "uuid": "e10eabcb-458b-4d95-8f58-df246c57b358", + "version": "1.15.11", + "latestVersion": "1.16.0" + }, + "attribution": { + "analyzerIdentity": "OSSINDEX_ANALYZER", + "attributedOn": "2026-04-22 23:25:12.153" + }, + "vulnerability": { + "severity": "MEDIUM", + "cvssV3BaseScore": 7.5, + "vulnId": "CVE-2026-40895", + "aliases": [], + "references": "* [https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653](https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653)", + "cvssV4Score": 6.9, + "cweId": 200, + "description": "follow-redirects is an open source, drop-in replacement for Node's `http` and `https` modules that automatically follows redirects. Prior to 1.16.0, when an HTTP request follows a cross-domain redirect (301/302/307/308), follow-redirects only strips authorization, proxy-authorization, and cookie headers (matched by regex at index.js). Any custom authentication header (e.g., X-API-Key, X-Auth-Token, Api-Key, Token) is forwarded verbatim to the redirect target. This vulnerability is fixed in 1.16.0.", + "cvssV3Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", + "epssScore": 0.00042, + "source": "NVD", + "published": "2026-04-21 21:16:44.337", + "cwes": [ + { + "cweId": 200, + "name": "Exposure of Sensitive Information to an Unauthorized Actor" + } + ], + "uuid": "aa836a97-5cb0-401b-b230-efcf4e457886", + "severityRank": 2, + "cweName": "Exposure of Sensitive Information to an Unauthorized Actor", + "cvssV4Vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N", + "epssPercentile": 0.12816 + }, + "matrix": "ca4f2da9-0fad-4a13-92d7-f627f3168a56:e10eabcb-458b-4d95-8f58-df246c57b358:aa836a97-5cb0-401b-b230-efcf4e457886", + "analysis": { + "isSuppressed": false + } + }, + { + "component": { + "name": "dompurify", + "project": "ca4f2da9-0fad-4a13-92d7-f627f3168a56", + "purl": "pkg:npm/dompurify@3.3.3", + "uuid": "c3cf13d0-de48-4aae-ad53-710da9a90825", + "version": "3.3.3", + "latestVersion": "3.4.1" + }, + "attribution": { + "analyzerIdentity": "INTERNAL_ANALYZER", + "attributedOn": "2026-04-22 23:25:18.21" + }, + "vulnerability": { + "severity": "MEDIUM", + "vulnId": "GHSA-h7mw-gpvr-xq4m", + "aliases": [ + { + "ghsaId": "GHSA-h7mw-gpvr-xq4m", + "cveId": "CVE-2026-41240" + } + ], + "references": "* [https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m](https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m)\n* [https://github.com/cure53/DOMPurify/releases/tag/3.4.0](https://github.com/cure53/DOMPurify/releases/tag/3.4.0)\n* [https://github.com/advisories/GHSA-h7mw-gpvr-xq4m](https://github.com/advisories/GHSA-h7mw-gpvr-xq4m)", + "cvssV4Score": 6, + "cweId": 79, + "description": "There is an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used.\n\nCommit [c361baa](https://github.com/cure53/DOMPurify/commit/c361baa18dbdcb3344a41110f4c48ad85bf48f80) added an early exit for FORBID_ATTR at line 1214:\n\n /* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */\n if (FORBID_ATTR[lcName]) {\n return false;\n }\n\nThe same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely:\n\n if (\n !(\n EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function &&\n EXTRA_ELEMENT_HANDLING.tagCheck(tagName) // true -> short-circuits\n ) &&\n (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) // never evaluated\n ) {\n\nThis allows forbidden elements to survive sanitization with their attributes intact.\n\nPoC (tested against current HEAD in Node.js + jsdom):\n\n const DOMPurify = createDOMPurify(window);\n\n DOMPurify.sanitize(\n '