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.

Permalink: https://github.com/advisories/GHSA-p2g9-94wh-65c2
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wMmc5LTk0d2gtNjVjMs4AArqw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 2 years ago
Updated: about 1 year ago


Identifiers: GHSA-p2g9-94wh-65c2
References: Repository: https://github.com/rust-ammonia/ammonia
Blast Radius: 0.0

Affected Packages

cargo:ammonia
Dependent packages: 47
Dependent repositories: 685
Downloads: 4,191,438 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