Read the docs
TI-2022-26548 Aliases GHSA-p2g9-94wh-65c2

Space bug in `clean_text`

Priority LOW 38CWE-79Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Cross-site scripting
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.

Summary

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: let html = format!("<div title={}>", clean_text(user_supplied_string)); Applications are not affected if they quote their attributes, or if they don't use `clean_text` at all.

Why it matters now

Fix Fixed ammonia (crates.io): 3.1.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ammonia (crates.io)3.0.0 to before 3.1.33.1.3Patch availableGHSA-p2g9-94wh-65c2
  • ammonia (crates.io) Vendor— Affected 3.0.0 to before 3.1.3 Fixed in 3.1.3 Patch available GHSA-p2g9-94wh-65c2

Remediation

  • Fix · GHSA-p2g9-94wh-65c2 ammonia (crates.io) Fixed in 3.1.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-p2g9-94wh-65c2

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences