Advisory

GHSA-xmr7-v725-2jjr

Also known as: CVE-2021-27671, RUSTSEC-2021-0026

Summary

Cross site scripting in comrak

Details

An issue was discovered in the comrak crate before 0.9.1 for Rust. Cross site scripting (XSS) can occur because the protection mechanism for data: and javascript: URIs is case-sensitive, allowing (for example) Data: to be used in an attack.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 20:52 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

comrak

crates.io · All systems

Affected

  • introduced 0, fixed 0.9.1 (semver)

Fixed versions

0.9.1

Fix

  • Fixed version 0.9.1
    cargo update -p comrak --precise 0.9.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences