CVE-2022-25863Gatsbyjs Gatsby-plugin-mdx
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Gatsbyjs · Gatsbyjs Gatsby-plugin-mdx Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.9% probabilidad de explotación en 30 días · percentil 80
- Requiere autenticación
- No
- Publicada
- 10 jun 2022
- Actualizada
- 29 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
The package gatsby-plugin-mdx before 2.14.1, from 3.0.0 and before 3.15.2 are vulnerable to Deserialization of Untrusted Data when passing input through to the gray-matter package, due to its default configurations that are missing input sanitization. Exploiting this vulnerability is possible when passing input in both webpack (MDX files in src/pages or MDX file imported as a component in frontend / React code) and data mode (querying MDX nodes via GraphQL). Workaround: If an older version of gatsby-plugin-mdx must be used, input passed into the plugin should be sanitized ahead of processing.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Gatsby-plugin-mdx.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | gatsby-plugin-mdx |
< 2.14.1 |
2.14.1 |
npm install gatsby-plugin-mdx@2.14.1 |
| npm | gatsby-plugin-mdx |
≥ 3.0.0 < 3.15.2 |
3.15.2 |
npm install gatsby-plugin-mdx@3.15.2 |
Según OSV / GitHub Advisories (GHSA-mj46-r4gr-5x83). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| gatsbyjs | gatsby-plugin-mdx | < 2.14.1 |
| gatsbyjs | gatsby-plugin-mdx | ≥ 3.0.0 < 3.15.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- drive.google.com Exploit Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory