Advisory record · GHSA-p2g9-94wh-65c2

Space bug in `clean_text`

No CVSS score

Published by the GitHub Advisory Database at 16 Jun 2022, 23:39 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
ammoniacrates.io>=3.0.0, <3.1.33.1.3
Identifiers
GHSA-p2g9-94wh-65c2 · RUSTSEC-2022-0003
Weakness (CWE)
CWE-79
Published
16 Jun 2022
Updated
8 Nov 2023

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The ammonia package, versions 3.0.0 up to but not including 3.1.3, has a flaw in its clean_text function: it maps HTML whitespace incorrectly, treating Form Feed differently than the HTML specification does. An attacker who controls input passed through clean_text, and that input is placed into an unquoted HTML attribute, could inject extra attributes or markup. Upgrade ammonia to 3.1.3. Applications that quote their attributes or do not use clean_text are not affected.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

No source has published a CVSS score for this record yet.

  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 15:20 UTC First seen by agentprime
  2. 31 Oct 2026, 15:20 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.