CVE-2021-27671 json
Cross site scripting in comrak
published 2021-02-21 5 y ago modified 2026-06-17 4 mo ago also GHSA-xmr7-v725-2jjr , RUSTSEC-2021-0026 , EUVD-2021-1936
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io comrak 0.9.1
- comrak_project comrak 0.9.1
Exploit prediction
0.69% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | comrak | <0.9.1 >=0.0.0-0, <0.9.1 |
0.9.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/kivikakk/comrak/commit/b3efbb6e427bcd33bb14db45753ad4fd98e0f5bf
web
-
rustsec.org
/advisories/RUSTSEC-2021-0026.html
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-27671
advisory
-
github.com
/kivikakk/comrak
package
-
github.com
/kivikakk/comrak/releases/tag/0.9.1
web
-
crates.io
/crates/comrak
package
Sources
- CVE List CVE-2021-27671
- GitHub Advisory GHSA-xmr7-v725-2jjr
- NVD CVE-2021-27671
- OSV RUSTSEC-2021-0026
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.