GHSA-CF4Q-4CQR-7G7W
Vulnerability from github – Published: 2022-04-22 20:25 – Updated: 2022-04-22 20:25xml2rfc allows script elements in SVG sources.
In HTML output having these script elements can lead to XSS attacks.
Sample XML snippet:
<artwork type="svg" src="data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cscript%3E window.alert('Test Alert'); %3C/script%3E%3C/svg%3E">
</artwork>
Impact
This vulnerability impacts website that publish HTML drafts and RFCs.
Patches
This has been fixed in version 3.12.4.
Workarounds
If SVG source is self-contained within the XML, scraping script elements from SVG files.
References
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script
For more information
If you have any questions or comments about this advisory: * Open an issue in xml2rfc * Email us at operational-vulnerability@ietf.org * Infrastructure and Services Vulnerability Disclosure
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "xml2rfc"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.12.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2022-04-22T20:25:53Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "xml2rfc allows `script` elements in SVG sources.\nIn HTML output having these script elements can lead to XSS attacks.\n\nSample XML snippet:\n```\n\u003cartwork type=\"svg\" src=\"data:image/svg+xml,%3Csvg viewBox=\u00270 0 10 10\u0027 xmlns=\u0027http://www.w3.org/2000/svg\u0027%3E%3Cscript%3E window.alert(\u0027Test Alert\u0027); %3C/script%3E%3C/svg%3E\"\u003e\n\u003c/artwork\u003e\n```\n\n### Impact\nThis vulnerability impacts website that publish HTML drafts and RFCs.\n\n### Patches\nThis has been fixed in version [3.12.4](https://github.com/ietf-tools/xml2rfc/releases/tag/v3.12.4).\n\n### Workarounds\nIf SVG source is self-contained within the XML, scraping `script` elements from SVG files.\n\n### References\n* https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [xml2rfc](https://github.com/ietf-tools/xml2rfc/)\n* Email us at [operational-vulnerability@ietf.org](mailto:operational-vulnerability@ietf.org)\n* [Infrastructure and Services Vulnerability Disclosure](https://www.ietf.org/about/administration/policies-procedures/vulnerability-disclosure/)\n",
"id": "GHSA-cf4q-4cqr-7g7w",
"modified": "2022-04-22T20:25:53Z",
"published": "2022-04-22T20:25:53Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cf4q-4cqr-7g7w"
},
{
"type": "PACKAGE",
"url": "https://github.com/ietf-tools/xml2rfc"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "SVG with embedded scripts can lead to cross-site scripting attacks in xml2rfc"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.