Advisory

RUSTSEC-2021-0026

Also known as: CVE-2021-27671, GHSA-xmr7-v725-2jjr

Summary

XSS in comrak

Details

The comrak we were matching unsafe URL prefixes, such as data: or javascript: , in a case-sensitive manner. This meant prefixes like Data: were untouched.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2021-02-21 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

comrak

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences