GHSA-PQ74-MJ4H-CJQ2
XSS via text/org content files
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-PQ74-MJ4H-CJQ2 divulgada | |
| Remediación | Parche v0.166.0 | github.com/gohugoio/hugo · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Not an issue if you fully trust every file under `/content` and every content adapter you load.
Description. Hugo accepts content files in several markup formats. Files mapped to the `text/org` media type. Org export blocks and @@html:...@@ snippets pass raw HTML through unescaped, making text/org vulnerable to Cross-Site Scripting (XSS)
Mitigation. v0.166.0 introduces a `security.allowContent` whitelist with `text/org` denied by default. Sites that intentionally author Org Mode content can opt back in:
[security]
allowContent = ['.*']This only affects pages whose source file (or content adapter output) declares an `text/org` media type.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/gohugoio/hugo |
Corregida | v0.166.0 | 0 d | v0.170.0 no afectada |
v0.166.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
