AngularJS improper sanitization in SVG '' element with 'ngSanitize'
Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '' SVG elements in AngularJS's 'ngSanitize' module allows attackers to bypass common image source restrictions. This can lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing and also negatively affect the application's performance and behavior by using too large or slow-to-load images. This issue affects AngularJS versions greater than or equal to 1.3.1. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-2336
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:55 UTC · Revision 1
Source evidence
AngularJS improper sanitization in SVG '' element with 'ngSanitize'
core-osv · Original sourcePublished 4 Jun 2025, 16:32 UTC
Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '' SVG elements in AngularJS's 'ngSanitize' module allows attackers to bypass common image source restrictions. This can lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing and also negatively affect the application's performance and behavior by using too large or slow-to-load images. This issue affects AngularJS versions greater than or equal to 1.3.1. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
osv:CVE-2025-2336
Complete source record
{
"id": "de6c85736602835e80cc1f2bfa58b4a3db3b4a1d39131e323e2c94e9bc35b51f",
"url": "https://osv.dev/vulnerability/CVE-2025-2336",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "AngularJS improper sanitization in SVG '' element with 'ngSanitize'",
"summary": "Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '' SVG elements in AngularJS's 'ngSanitize' module allows attackers to bypass common image source restrictions. This can lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing and also negatively affect the application's performance and behavior by using too large or slow-to-load images. This issue affects AngularJS versions greater than or equal to 1.3.1. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .",
"evidence": "osv:CVE-2025-2336",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-2336",
"aliases": [
"CVE-2025-2336",
"GHSA-4p4w-6hg8-63wx"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/angular/angular.js",
"type": "GIT",
"events": [
{
"introduced": "ed6e91b31824b57a084b33b4fc7f869c8d5909be"
},
{
"last_affected": "ed6e91b31824b57a084b33b4fc7f869c8d5909be"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": ">=1.3.1"
},
{
"last_affected": ">=1.3.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
}
],
"versions": [
">=1.3.1",
"v1.3.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2336.json"
}
}
],
"modified": "2026-10-28T02:30:50.541555742Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html",
"https://registry.npmjs.org",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2336.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-2336",
"https://www.herodevs.com/vulnerability-directory/cve-2025-2336",
"https://github.com/angular/angular.js",
"https://codepen.io/herodevs/pen/bNGYaXx/412a3a4218387479898912f60c269c6c",
"https://www.herodevs.com/vulnerability-directory/cve-2025-2336?angularjs-nes"
],
"provider_metadata": {
"cwe_ids": [
"CWE-791"
],
"cna_assigner": "HeroDevs",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2336.json"
}
},
"related_cves": [
{
"value": "CVE-2025-2336",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518817,
"published_at": "2025-06-04T16:32:31.665+00:00"
}