llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · mdBook

GHSA-GX5W-RRHP-F436

XSS in mdBook

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -233 d de la divulgación
Exposición1.912 dDesde la divulgación, 25 ago 2021, 3:56 p. m.
Detección1.909 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 0.4.5
Monitoreo
Detectada
4 ene 21
25 ago 21
10 sept 26
17 nov 26
19 nov 26
4 ene 21
25 jun 22
13 dic 23
1 jun 25
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.4.5 mdBook · -233 d desde divulgación
Divulgación Publicada GHSA-GX5W-RRHP-F436 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

> This is a cross-post of [the official security advisory][ml]. The official post contains a signed version with our PGP key, as well.

[ml]: https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0

The Rust Security Response Working Group was recently notified of a security issue affecting the search feature of mdBook, which could allow an attacker to execute arbitrary JavaScript code on the page.

The CVE for this vulnerability is CVE-2020-26297 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26297.

Overview

The search feature of mdBook (introduced in version 0.1.4) was affected by a cross site scripting vulnerability that allowed an attacker to execute arbitrary JavaScript code on an user's browser by tricking the user into typing a malicious search query, or tricking the user into clicking a link to the search page with the malicious search query prefilled.

mdBook 0.4.5 fixes the vulnerability by properly escaping the search query.

Mitigations

Owners of websites built with mdBook have to upgrade to mdBook 0.4.5 or greater and rebuild their website contents with it. It's possible to install mdBook 0.4.5 on the local system with:

cargo install mdbook --version 0.4.5 --force

Acknowledgements

Thanks to Kamil Vavra for responsibly disclosing the vulnerability to us according to our security policy https://www.rust-lang.org/policies/security.

Timeline of events

All times are listed in UTC.

  • 2020-12-30 20:14 - The issue is reported to the Rust Security Response WG
  • 2020-12-30 20:32 - The issue is acknowledged and the investigation began
  • 2020-12-30 21:21 - Found the cause of the vulnerability and prepared the patch
  • 2021-01-04 15:00 - Patched version released and vulnerability disclosed
Versiones

Rangos afectados

Afectada Corregida Última
mdBook≥ 0.1.4 < 0.4.5
0.1.4
0.4.5
0.5.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iomdBook
Corregida 0.4.5 -233 d 0.5.4 no afectada
Versiones corregidas0.4.5
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-26297
Otrahttps://github.com/rust-lang/mdBook/security/advisories/GHSA-gx5w-rrhp-f436
Otrahttps://github.com/rust-lang/mdBook/commit/32abeef088e98327ca0dfccdad92e84afa9d2e9b
Otrahttps://github.com/rust-lang/mdBook
Otrahttps://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-045
Otrahttps://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0
Otrahttps://rustsec.org/advisories/RUSTSEC-2021-0001.html

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.