RUSTSEC-2022-0003

    Dashboard / Vulnerabilities / RUSTSEC-2022-0003

    RUSTSEC-2022-0003

    Published: 19 Jan 2022Last Modified: 8 Nov 2023

    Summary: Space bug in `clean_text`

    Details: 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.

    Affected packages

    Package

    Name: ammonia

    Purl: pkg:cargo/ammonia

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 3.0.0
    Fixed -3.1.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RUSTSEC-2022-0003 | CVE-DB