Svg Loader
Approved changes feed: RSS · Atom
cpe:2.3:a:shubhamjain:svg_loader:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Shubhamjain (200b79a1-b64a-5fcb-9caa-ea52d0cc531e) |
|---|---|
| Product | Svg Loader (4985f3c9-1de7-5c7f-913c-a690b291e6d9) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/shubhamjain/svg-loader |
purl2cpe | 2026-06-01 10:13:32.431366 |
pkg:npm/external-svg-loader |
purl2cpe | 2026-06-01 10:13:32.431370 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2023-40013 |
vulnerable | 2026-06-08 06:09:41.022571 |
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in external-svg-loader
HIGH (7.1)
SVG Loader is a javascript library that fetches SVGs using XMLHttpRequests and injects the SVG code in the tag's place. According to the docs, svg-loader will strip all JS code before injecting the SVG file for security reasons but the input sanitization logic is not sufficient and can be trivially bypassed. This allows an attacker to craft a malicious SVG which can result in Cross-site Scripting (XSS). When trying to sanitize the svg the lib removes event attributes such as `onmouseover`, `onclick` but the list of events is not exhaustive. Any website which uses external-svg-loader and allows its users to provide svg src, upload svg files would be susceptible to stored XSS attack. This issue has been addressed in commit `d3562fc08` which is included in releases from 1.6.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Published: 2023-08-14T20:10:24.585Z
Updated: 2024-10-02T20:35:31.785Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.