RUSTSEC-2021-0063

Source
https://rustsec.org/advisories/RUSTSEC-2021-0063
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0063.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0063
Aliases
Published
2021-05-04T12:00:00Z
Modified
2023-11-08T04:06:25.615713Z
Summary
XSS in `comrak`
Details

comrak operates by default in a "safe" mode of operation where unsafe content, such as arbitrary raw HTML or URLs with non-standard schemes, are not permitted in the output. This is per the reference GFM implementation, cmark-gfm.

Ampersands were not being correctly escaped in link targets, making it possible to fashion unsafe URLs using schemes like data: or javascript: by entering them as HTML entities, e.g. &#x64&#x61&#x74&#x61&#x3a. The intended behaviour, demonstrated upstream, is that these should be escaped and therefore harmless, but this behaviour was broken in comrak.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / comrak

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.10.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "format-injection"
    ]
}