ammonia
HTML Sanitization
Activity
- Latest release
- 1w ago
- Total releases
- 55
- Cadence
- ~27 days
- Last 12 months
- 16
Reach
- Downloads
- 18.7M
Details
- License
- MIT OR Apache-2.0
- First release
- Sep 04, 2015
| Version | Released | |
|---|---|---|
4.2.4
patch
| ||
4.1.8
patch
| ||
4.1.7
patch
1 CVE
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev | ||
4.2.3
patch
1 CVE
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev | ||
4.2.2
patch
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.6
patch
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.3.4
patch
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.3.4
patch
Dependencies (7)
Changelog
Compare changes
|
|
4.2.1
patch
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.5
patch
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.2.0
minor
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.4
unknown
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.0.3
unknown
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.3.3
unknown
3 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.3
unknown
4 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.0.2
unknown
4 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.3.2
unknown
4 CVEs
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.3.1
unknown
5 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.0.1
unknown
5 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.2
unknown
5 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.1
unknown
5 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.1.0
unknown
5 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
4.0.0
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.3.0
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.2.1
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.2.0
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev | ||
3.1.4
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.1.4
unknown
Dependencies (8)
Changelog
Compare changes
|
|
3.1.3
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.1.3
unknown
Dependencies (9)
+ 1 more
Changelog
Compare changes
|
|
2.1.4
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
2.1.4
unknown
Dependencies (8)
Changelog
Compare changes
|
|
2.1.3
unknown
6 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
2.1.3
unknown
Dependencies (8)
Changelog
Compare changes
|
|
3.1.2
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
GHSA-p2g9-94wh-65c2
RUSTSEC-2022-0003
Jun 16, 2022
Space bug in `clean_text`
Medium
An incorrect mapping from HTML specification to ASCII codes was used. Because HTML treats the Form Feed as whitespace, code like this has an injection bug:
Applications are not affected if they quote their attributes, or if they don't use Fixed in
3.1.3
References Updated Nov 08, 2023 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.1.2
unknown
yanked
Dependencies (9)
+ 1 more
Changelog
Compare changes
|
|
3.1.1
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
GHSA-p2g9-94wh-65c2
RUSTSEC-2022-0003
Jun 16, 2022
Space bug in `clean_text`
Medium
An incorrect mapping from HTML specification to ASCII codes was used. Because HTML treats the Form Feed as whitespace, code like this has an injection bug:
Applications are not affected if they quote their attributes, or if they don't use Fixed in
3.1.3
References Updated Nov 08, 2023 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.1.1
unknown
yanked
Dependencies (9)
+ 1 more
Changelog
Compare changes
|
|
3.1.0
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
GHSA-p2g9-94wh-65c2
RUSTSEC-2022-0003
Jun 16, 2022
Space bug in `clean_text`
Medium
An incorrect mapping from HTML specification to ASCII codes was used. Because HTML treats the Form Feed as whitespace, code like this has an injection bug:
Applications are not affected if they quote their attributes, or if they don't use Fixed in
3.1.3
References Updated Nov 08, 2023 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev |
3.1.0
unknown
yanked
Dependencies (9)
+ 1 more
Changelog
Compare changes
|
|
3.0.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
GHSA-p2g9-94wh-65c2
RUSTSEC-2022-0003
Jun 16, 2022
Space bug in `clean_text`
Medium
An incorrect mapping from HTML specification to ASCII codes was used. Because HTML treats the Form Feed as whitespace, code like this has an injection bug:
Applications are not affected if they quote their attributes, or if they don't use Fixed in
3.1.3
References Updated Nov 08, 2023 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev |
3.0.0
unknown
yanked
Dependencies (8)
Changelog
Compare changes
|
|
2.1.2
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev |
2.1.2
unknown
yanked
Dependencies (8)
Changelog
Compare changes
|
|
2.1.1
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
2.1.0
unknown
yanked
7 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
2.0.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.2.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.1.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.0.1
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.0.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
1.0.0-rc3
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev |
1.0.0-rc3
unknown
yanked
Dependencies (7)
Changelog
Compare changes
|
|
1.0.0-rc2
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev |
1.0.0-rc2
unknown
yanked
Dependencies (7)
Changelog
Compare changes
|
|
1.0.0-rc1
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.7.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.6.1
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.6.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.5.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.4.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev | ||
0.3.0
unknown
yanked
8 CVEs
CVE-2026-63430
GHSA-9jh8-v38h-cvhr
RUSTSEC-2026-0193
Oct 22, 2026
ammonia: mXSS via MathML `annotation-xml` encoding strip
Medium
Network
Low
None
None
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser. The This vulnerability only has an effect when the
Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. ImpactLow: Requires both MathML and at least one raw-text HTML tag to be enabled, and most websites don't enable either of those. Patches
WorkaroundsCall builder.add_clean_content_tags("annotation-xml") to remove the annotation-xml element and all of its children, including the XSS gadget. Fixed in
3.3.2
4.0.2
4.1.3
References
Updated Oct 22, 2026 · Source: OSV.dev
RUSTSEC-2026-0373
GHSA-x43w-36pp-96g3
Oct 16, 2026
Missing case-insensitive matching for CSS url function URL filtering, such as relative URLs and URL scheme limits, is not always applied when CSS sanitization is used. When the inner URL is quoted, CSS The following example shows how an application needs to be configured to trigger this bug.
This can be used to inject tracking pixels where the application intended to prevent them. It does not allow XSS, and its usefulness for data exfiltration is limited. This vulnerability was reported by Louis Li. Fixed in
4.1.8
4.2.4
References Updated Oct 17, 2026 · Source: OSV.dev
CVE-2026-102342
GHSA-m6mh-2hw2-555x
RUSTSEC-2026-0213
Sep 29, 2026
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
5.4
/ 10
Medium
Network
Low
Low
Required
Changed
Low
Low
None
The following SVG will produce a link with a
ImpactAllows stored XSS in applications that allow the PatchesFixed in 3.3.3, 4.0.3, and 4.1.4 WorkaroundsDo not enable the Fixed in
3.3.3
4.0.3
4.1.4
References
Updated Sep 29, 2026 · Source: OSV.dev
GHSA-mm7x-qfjj-5g2c
RUSTSEC-2025-0071
Sep 22, 2025
Ammonia incorrectly handles embedded SVG and MathML leading to mutation XSS after removal
Low
Network
Low
None
None
Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML. This vulnerability only has an effect when the Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. Fixed in
3.3.1
4.0.1
4.1.2
References Updated Sep 10, 2026 · Source: OSV.dev
RUSTSEC-2021-0158
GHSA-f2pc-rwv3-69mv
Oct 10, 2021
XSS in ammonia via SVG `animateMotion`, `animateTransform`, and/or `animateColor` tags The neutralization that ammonia applied to The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
Ammonia did not apply attribute filters based on Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default. This vulnerability was reported by ucsurf. Fixed in
4.1.7
4.2.3
References Updated Oct 13, 2026 · Source: OSV.dev
RUSTSEC-2021-0157
GHSA-69v2-w9vg-4g83
Oct 10, 2021
Incorrect escaping for `url("")` functions in CSS style attributes In some cases, quotation marks in CSS url() functions are not escaped. This allows CSS injection. This feature is not enabled by default, so an application is vulnerable if, and only if, the style attribute is allowed and filter_style_properties is used. As an example, this snippet:
Would erroneously "sanitize" to:
This vulnerability was reported by Uttej Badwane Fixed in
4.1.7
4.2.3
References Updated Oct 12, 2026 · Source: OSV.dev
CVE-2021-38193
GHSA-5325-xw5m-phm3
RUSTSEC-2021-0074
Aug 25, 2021
Cross-site Scripting in ammonia
6.1
/ 10
Medium
Network
Low
None
Required
Changed
Low
Low
None
An issue was discovered in the ammonia crate before 3.1.0 for Rust. XSS can occur because the parsing differences for HTML, SVG, and MathML are mishandled, a similar issue to CVE-2020-26870. Fixed in
2.1.3
3.1.0
References Updated Nov 08, 2023 · Source: OSV.dev
CVE-2019-15542
GHSA-5hp8-35wj-m525
RUSTSEC-2019-0001
Aug 25, 2021
Uncontrolled recursion in ammonia
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization. Fixed in
2.1.0
References Updated Nov 08, 2023 · Source: OSV.dev |