llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · network-ai

GHSA-M4JG-6W3Q-GM86

** `ApprovalInbox` GET read routes remain unauthenticated and wildcard-CORS after the GHSA-mxjx-28vx-xjjj fix — queued high-risk action content disclosed even when a `secret` is set

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición139 dDesde la divulgación, 5 jul 2026, 2:15 p. m.
Detección136 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (alta) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Si sale un exploit, la subo de categoría. Atento.Ponle fecha: las tareas sin fecha son leyendas.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 5.13.4
Monitoreo
Detectada +1
5 jul 26
19 nov 26
22 nov 26
5 jul 26
9 ago 26
13 sept 26
18 oct 26
22 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-M4JG-6W3Q-GM86 divulgada
Remediación Parche 5.13.4 network-ai · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
GitHub

Advisory draft (responsible disclosure to maintainer)

Title: `ApprovalInbox` GET read routes remain unauthenticated and wildcard-CORS after the GHSA-mxjx-28vx-xjjj fix — queued high-risk action content disclosed even when a `secret` is set

Affected: `network-ai` >= 5.12.2, <= 5.13.3 (`lib/approval-inbox.ts`)
CWE: CWE-862 (Missing Authorization), CWE-352 (CSRF / wildcard CORS)
Relationship: incomplete fix for GHSA-mxjx-28vx-xjjj

Summary

Thank you for the v5.12.2 hardening of `ApprovalInbox`. The new `secret` /
`checkAuth()` is sound, but it is wired into only the two POST mutating routes
(`/approve`, `/deny`). The advisory's Recommended fix #1 ("verify it … on the
list/stats/SSE routes") and #2 ("Remove the hardcoded `Access-Control-Allow-Origin: *`")
were not implemented, so an operator who follows the new guidance and constructs
`new ApprovalInbox({ secret })` still exposes, with no authentication:

  • `GET /approvals/?status=all` and `GET /approvals/:id` — full `ApprovalEntry.request`
  • `GET /approvals/stats`; `GET /approvals/sse` — a live stream of all of the above;
  • all of these carry the still-hardcoded `Access-Control-Allow-Origin: *`, so any

This is the same disclosure the original report flagged ("Read pending requests →
disclosure of queued action details: command strings, file paths, justifications").

Reproduction (published 5.13.3, mitigation applied)

npm i network-ai@5.13.3
node poc.mjs   # constructs ApprovalInbox({ secret }), one benign high-risk request

Observed:
- `POST /approvals/:id/approve` with no Bearer → 401 (correctly gated).
- `GET /approvals/?status=all` with no Bearer → 200, leaks the request `target`
and `justification`.
- `GET` response `Access-Control-Allow-Origin: *`.
- `GET /approvals/<bogus>` → 404 (negative control).

No destructive action was executed; a benign sentinel marker was used as the gated
command.

Recommended fix

  1. Apply `checkAuth()` (read-scoped if desired) to `GET /`, `/stats`, `/sse`, `/:id`,
  2. Remove the hardcoded `Access-Control-Allow-Origin: *` (handler + `addSSEClient`);

Disclosure

Via GitHub private security advisory (Jovancoding/Network-AI → Security → Report a
vulnerability), per SECURITY.md.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
network-ai≥ 5.12.2 ≤ 5.13.3
5.12.2
5.13.3
6.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmnetwork-ai
Corregida 5.13.4 0 d 6.0.1 no afectada
Versiones corregidas5.13.4
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/Jovancoding/Network-AI/security/advisories/GHSA-m4jg-6w3q-gm86

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