ammonia
Affected
- introduced
3.0.0, fixed3.1.3(semver)
Fixed versions
3.1.3
Fix
- Fixed version
3.1.3cargo update -p ammonia --precise 3.1.3
Advisory
Also known as: GHSA-p2g9-94wh-65c2
Space bug in clean_text
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.
Not rated by the source.
3.0.0, fixed 3.1.3 (semver)3.1.3
3.1.3cargo update -p ammonia --precise 3.1.3Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0