llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @apollo/server

GHSA-68JH-RF6X-836F

@apollo/server vulnerable to unsafe application of Content Security Policy via reused nonces

Parche disponible
Descargar PNG JSON
CVSS
—
low
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición1.253 dDesde la divulgación, 16 jun 2023, 2:40 p. m.
Detección1.249 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 (baja) 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 todas fueran así, viviría en la playa.Esta no le quita el sueño ni a un SOC novato.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 4.7.4
Monitoreo
Detectada
15 jun 23
16 jun 23
20 jun 23
17 nov 26
21 nov 26
15 jun 23
24 abr 24
4 mar 25
11 ene 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 4.7.4 @apollo/server · -1 d desde divulgación
Divulgación Publicada GHSA-68JH-RF6X-836F 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

### Context
Content Security Policies (CSP) are a defense-in-depth strategy against XSS attacks. Improper application of CSP isn't itself a vulnerability, but it does fail to prevent XSS in the event that there is a viable attack vector for an XSS attack.

### Impact
There aren't any XSS attack vectors via the Apollo Server landing pages _known to Apollo_, so to our knowledge there is no impact. However, if there are existing XSS vectors that haven't been reported and patched, then all users of Apollo Server's landing pages have a vulnerability which won't be prevented by the current CSP implemented by the landing pages.

Prior to version 4.7.1, there was no CSP implemented at all. However, the initial CSP implementation (4.7.1+) reused nonces. While this sufficiently resolved the issue w.r.t. scripts not running in Safari, it did not implement CSP in a safe or conventional way.

### Patches
The issue is patched in the latest version of Apollo Server, v4.7.4. The changes can be reviewed in the merge commit https://github.com/apollographql/apollo-server/commit/0adaf80d1ee51d8c7e5fd863c04478536d15eb8c.

### Workarounds
The landing page can be disabled completely until the patch can be upgraded to.
https://www.apollographql.com/docs/apollo-server/api/plugin/landing-pages/#disabling-the-landing-page

### References
https://content-security-policy.com/nonce/

Versiones

Rangos afectados

Afectada Corregida Última
@apollo/server≥ 4.7.1 < 4.7.4
4.7.1
4.7.4
5.5.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@apollo/server
Corregida 4.7.4 -1 d 5.5.2 no afectada
Versiones corregidas4.7.4
Explotación

Arsenal público

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

Referencias
Otrahttps://github.com/apollographql/apollo-server/security/advisories/GHSA-68jh-rf6x-836f
Otrahttps://github.com/apollographql/apollo-server/commit/0adaf80d1ee51d8c7e5fd863c04478536d15eb8c
Otrahttps://github.com/apollographql/apollo-server

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