Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-cf4q-4cqr-7g7w — xml2rfc

⚪ Unknown ✅ No Known Exploit CWE-79 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

SVG with embedded scripts can lead to cross-site scripting attacks in xml2rfc

xml2rfc 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](https://github.com/ietf-tools/xml2rfc/releases/tag/v3.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](https://github.com/ietf-tools/xml2rfc/)
  • Email us at [[email protected]](mailto:[email protected])
  • [Infrastructure and Services Vulnerability Disclosure](https://www.ietf.org/about/administration/policies-procedures/vulnerability-disclosure/)

Weakness class

GHSA-cf4q-4cqr-7g7w is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.

Affected software

GHSA-cf4q-4cqr-7g7w is recorded against 1 package.

  • xml2rfc (fixed in 3.12.4)

Timeline and source

Published on 22 April 2022 and last revised on 5 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE CWE-79
Public Exploit ✅ No
Source OSV
Published 2022-04-22
Updated 2026-08-20
Modified 2024-12-05
Fix URL N/A

Affected Packages

Software From version Fixed in
xml2rfc 3.12.4

Similar Threats

Free Vulnerability Check

Is your site affected by GHSA-cf4q-4cqr-7g7w?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-cf4q-4cqr-7g7w and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.