{"id":"GHSA-p2g9-94wh-65c2","aliases":["RUSTSEC-2022-0003"],"url":"https://o3.security/vulnerability/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!(\"<div title={}>\", 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","published":"2022-06-16T23:39:55Z","modified":"2023-11-08T04:21:23.389784Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"ammonia","fixedVersion":"3.1.3"}],"fix":{"url":"https://github.com/rust-ammonia/ammonia/pull/147","label":"rust-ammonia/ammonia#147"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:21:23.389784Z"}}