CVE-2021-27671
JSON

6.1medium

Cross site scripting in comrak

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
0.69% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-xmr7-v725-2jjrRUSTSEC-2021-0026

Description

An issue was discovered in the comrak crate before 0.9.1 for Rust. 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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
comrak (crates.io)before 0.9.1, from 0.0.0-0 before 0.9.1GitHub Advisory Database, RustSec Advisory Database
comrak_project comrakbefore 0.9.1NVD

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
RustSec Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

An issue was discovered in the comrak crate before 0.9.1 for Rust. 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.

GitHub Advisory Database

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.

RustSec Advisory Database

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.

NVD (es)

Se detectó un problema en la crate comrak versiones anteriores a 0.9.1 para Rust. Un XSS puede ocurrir porque el mecanismo de protección de los URI data: y javascript: distingue entre mayúsculas y minúsculas, lo que permite (por ejemplo) que Data: sea usado en un ataque

References

Sources

SourceRecordLicence
CVE ListCVE-2021-27671 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-xmr7-v725-2jjr changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0026 changed 2023-11-08CC0-1.0
NVDCVE-2021-27671 changed 2026-06-17Public domain