{"id":"GHSA-p2g9-94wh-65c2","summary":"Space bug in `clean_text`","details":"An incorrect mapping from HTML specification to ASCII codes was used.\nBecause HTML treats the Form Feed as whitespace, code like this has an injection bug:\n\n    let html = format!(\"\u003cdiv title={}\u003e\", clean_text(user_supplied_string));\n\nApplications are not affected if they quote their attributes, or if they don't use `clean_text` at all.\n","aliases":["RUSTSEC-2022-0003"],"modified":"2023-11-08T04:21:23.389784Z","published":"2022-06-16T23:39:55Z","database_specific":{"github_reviewed_at":"2022-06-16T23:39:55Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/rust-ammonia/ammonia/pull/147"},{"type":"WEB","url":"https://github.com/rust-ammonia/ammonia/commit/6c7bf22907a75d1bbaed52e4f7dd9716f5e6f737"},{"type":"PACKAGE","url":"https://github.com/rust-ammonia/ammonia"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2022-0003.html"}],"affected":[{"package":{"name":"ammonia","ecosystem":"crates.io","purl":"pkg:cargo/ammonia"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-p2g9-94wh-65c2/GHSA-p2g9-94wh-65c2.json"}}],"schema_version":"1.9.0"}