Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/908859?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/908859?format=api", "purl": "pkg:npm/%40angular/compiler@16.2.0-next.2", "type": "npm", "namespace": "@angular", "name": "compiler", "version": "16.2.0-next.2", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "19.2.20", "latest_non_vulnerable_version": "22.0.0-next.3", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/49331?format=api", "vulnerability_id": "VCID-9e7u-6xjm-myaw", "summary": "Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes\nA **Stored Cross-Site Scripting ([XSS](https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss))** vulnerability has been identified in the **Angular Template Compiler**. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain [`javascript:` URLs](https://developer.mozilla.org/en-US/Web/URI/Reference/Schemes/javascript)) as requiring strict URL security, enabling the injection of malicious scripts.\n\nAdditionally, a related vulnerability exists involving SVG animation elements (`<animate>`, `<set>`, `<animateMotion>`, `<animateTransform>`). The `attributeName` attribute on these elements was not properly validated, allowing attackers to dynamically target security-sensitive attributes like `href` or `xlink:href` on other elements. By binding `attributeName` to \"href\" and providing a `javascript:` URL in the `values` or `to` attribute, an attacker could bypass sanitization and execute arbitrary code.\n\nAttributes confirmed to be vulnerable include:\n* SVG-related attributes: (e.g., `xlink:href`), and various MathML attributes (e.g., `math|href`, `annotation|href`).\n* SVG animation `attributeName` attribute when bound to \"href\" or \"xlink:href\".\n\nWhen template binding is used to assign untrusted, user-controlled data to these attributes (e.g., `[attr.xlink:href]=\"maliciousURL\"` or `<animate [attributeName]=\"'href'\" [values]=\"maliciousURL\">`), the compiler incorrectly falls back to a non-sanitizing context or fails to block the dangerous attribute assignment. This allows an attacker to inject a `javascript:URL` payload. Upon user interaction (like a click) on the element, or automatically in the case of animations, the malicious JavaScript executes in the context of the application's origin.", "references": [ { "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2025-66412.json", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.1", "scoring_system": "cvssv3", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N" } ], "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2025-66412.json" }, { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2025-66412", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00027", "scoring_system": "epss", "scoring_elements": "0.08142", "published_at": "2026-06-05T12:55:00Z" }, { "value": "0.00027", "scoring_system": "epss", "scoring_elements": "0.0809", "published_at": "2026-06-08T12:55:00Z" }, { "value": "0.00027", "scoring_system": "epss", "scoring_elements": "0.0814", "published_at": "2026-06-07T12:55:00Z" }, { "value": "0.00027", "scoring_system": "epss", "scoring_elements": "0.08157", "published_at": "2026-06-06T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-66412" }, { "reference_url": "https://cert-portal.siemens.com/productcert/html/ssa-485750.html", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://cert-portal.siemens.com/productcert/html/ssa-485750.html" }, { "reference_url": "https://github.com/angular/angular", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/angular/angular" }, { "reference_url": "https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-12-02T14:12:58Z/" } ], "url": "https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a" }, { "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2418155", "reference_id": "2418155", "reference_type": "", "scores": [], "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2418155" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-66412", "reference_id": "CVE-2025-66412", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-66412" }, { "reference_url": "https://github.com/advisories/GHSA-v4hv-rgfq-gp49", "reference_id": "GHSA-v4hv-rgfq-gp49", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-v4hv-rgfq-gp49" }, { "reference_url": "https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49", "reference_id": "GHSA-v4hv-rgfq-gp49", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" }, { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-12-02T14:12:58Z/" } ], "url": "https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/72727?format=api", "purl": "pkg:npm/%40angular/compiler@19.2.17", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-gjxh-3bv9-3qhd" }, { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@19.2.17" }, { "url": "http://public2.vulnerablecode.io/api/packages/72726?format=api", "purl": "pkg:npm/%40angular/compiler@20.3.15", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-gjxh-3bv9-3qhd" }, { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@20.3.15" }, { "url": "http://public2.vulnerablecode.io/api/packages/72725?format=api", "purl": "pkg:npm/%40angular/compiler@21.0.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-gjxh-3bv9-3qhd" }, { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@21.0.2" } ], "aliases": [ "CVE-2025-66412", "GHSA-v4hv-rgfq-gp49" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9e7u-6xjm-myaw" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/49652?format=api", "vulnerability_id": "VCID-gjxh-3bv9-3qhd", "summary": "Angular has XSS Vulnerability via Unsanitized SVG Script Attributes\nA Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. The vulnerability exists because Angular’s internal sanitization schema fails to recognize the `href` and `xlink:href` attributes of SVG `<script>` elements as a **Resource URL** context.\n\nIn a standard security model, attributes that can load and execute code (like a script's source) should be strictly validated. However, because the compiler does not classify these specific SVG attributes correctly, it allows attackers to bypass Angular's built-in security protections.\n\nWhen template binding is used to assign user-controlled data to these attributes for example, `<script [attr.href]=\"userInput\">` the compiler treats the value as a standard string or a non-sensitive URL rather than a resource link. This enables an attacker to provide a malicious payload, such as a `data:text/javascript` URI or a link to an external malicious script.", "references": [ { "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-22610.json", "reference_id": "", "reference_type": "", "scores": [ { "value": "7.3", "scoring_system": "cvssv3", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N" } ], "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-22610.json" }, { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-22610", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.0001", "scoring_system": "epss", "scoring_elements": "0.01215", "published_at": "2026-06-08T12:55:00Z" }, { "value": "0.0001", "scoring_system": "epss", "scoring_elements": "0.01219", "published_at": "2026-06-07T12:55:00Z" }, { "value": "0.00021", "scoring_system": "epss", "scoring_elements": "0.06269", "published_at": "2026-06-05T12:55:00Z" }, { "value": "0.00021", "scoring_system": "epss", "scoring_elements": "0.06258", "published_at": "2026-06-06T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-22610" }, { "reference_url": "https://cert-portal.siemens.com/productcert/html/ssa-485750.html", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://cert-portal.siemens.com/productcert/html/ssa-485750.html" }, { "reference_url": "https://github.com/angular/angular", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/angular/angular" }, { "reference_url": "https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-01-13T04:55:49Z/" } ], "url": "https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56" }, { "reference_url": "https://github.com/angular/angular/pull/66318", "reference_id": "", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-01-13T04:55:49Z/" } ], "url": "https://github.com/angular/angular/pull/66318" }, { "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2428424", "reference_id": "2428424", "reference_type": "", "scores": [], "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2428424" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22610", "reference_id": "CVE-2026-22610", "reference_type": "", "scores": [ { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22610" }, { "reference_url": "https://github.com/advisories/GHSA-jrmj-c5cx-3cw6", "reference_id": "GHSA-jrmj-c5cx-3cw6", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-jrmj-c5cx-3cw6" }, { "reference_url": "https://github.com/angular/angular/security/advisories/GHSA-jrmj-c5cx-3cw6", "reference_id": "GHSA-jrmj-c5cx-3cw6", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" }, { "value": "8.5", "scoring_system": "cvssv4", "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-01-13T04:55:49Z/" } ], "url": "https://github.com/angular/angular/security/advisories/GHSA-jrmj-c5cx-3cw6" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/73305?format=api", "purl": "pkg:npm/%40angular/compiler@19.2.18", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@19.2.18" }, { "url": "http://public2.vulnerablecode.io/api/packages/73304?format=api", "purl": "pkg:npm/%40angular/compiler@20.3.16", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@20.3.16" }, { "url": "http://public2.vulnerablecode.io/api/packages/73303?format=api", "purl": "pkg:npm/%40angular/compiler@21.0.7", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@21.0.7" }, { "url": "http://public2.vulnerablecode.io/api/packages/73302?format=api", "purl": "pkg:npm/%40angular/compiler@21.1.0-rc.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-tmqs-n75s-2uha" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@21.1.0-rc.0" } ], "aliases": [ "CVE-2026-22610", "GHSA-jrmj-c5cx-3cw6" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-gjxh-3bv9-3qhd" } ], "fixing_vulnerabilities": [], "risk_score": "4.0", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540angular/compiler@16.2.0-next.2" }