Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1wMmc5LTk0d2gtNjVjMs4AArqw
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wMmc5LTk0d2gtNjVjMs4AArqw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 2 years ago
Updated: over 1 year ago
Identifiers: GHSA-p2g9-94wh-65c2
References:
- https://github.com/rust-ammonia/ammonia/pull/147
- https://rustsec.org/advisories/RUSTSEC-2022-0003.html
- https://github.com/rust-ammonia/ammonia/commit/6c7bf22907a75d1bbaed52e4f7dd9716f5e6f737
- https://github.com/advisories/GHSA-p2g9-94wh-65c2
Blast Radius: 0.0
Affected Packages
cargo:ammonia
Dependent packages: 47Dependent repositories: 685
Downloads: 4,897,133 total
Affected Version Ranges: >= 3.0.0, < 3.1.3
Fixed in: 3.1.3
All affected versions: 3.0.0, 3.1.0, 3.1.1, 3.1.2
All unaffected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 3.1.3, 3.1.4, 3.2.0, 3.2.1, 3.3.0, 4.0.0