CVE-2022-31070
JSON

5.8medium

Potential Sensitive Cookie Exposure in NPM Packages @finastra/nestjs-proxy, @ffdc/nestjs-proxy

Severity
5.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.78% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-77mv-4rg7-r8qv

Description

NestJS Proxy is a NestJS module to decorate and proxy calls. Prior to version 0.7.0, the nestjs-proxy library did not have a way to block sensitive cookies (e.g. session cookies) from being forwarded to backend services configured by the application developer. This could have led to sensitive cookies being inadvertently exposed to such services that should not see them. The patched version now blocks cookies from being forwarded by default. However developers can configure an allow-list of cookie names by using the `allowedCookies` config setting. This issue has been fixed in version 0.7.0 of `@finastra/nestjs-proxy`. Users of `@ffdc/nestjs-proxy` are advised that this package has been deprecated and is no longer being maintained or receiving updates. Such users should update their package.json file to use `@finastra/nestjs-proxy` instead.

Affected

Product or packageVersionsReported by
Finastra finastra-nodejs-libs< 0.7.0CVE List
@finastra/nestjs-proxy (npm)before 0.7.0GitHub Advisory Database
finastra nestjs-proxybefore 0.7.0NVD
nestjs-proxy_project nestjs-proxyup to 0.4.0NVD

All scores

GitHub_M5.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
GitHub5.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

NestJS Proxy is a NestJS module to decorate and proxy calls. Prior to version 0.7.0, the nestjs-proxy library did not have a way to block sensitive cookies (e.g. session cookies) from being forwarded to backend services configured by the application developer. This could have led to sensitive cookies being inadvertently exposed to such services that should not see them. The patched version now blocks cookies from being forwarded by default. However developers can configure an allow-list of cookie names by using the `allowedCookies` config setting. This issue has been fixed in version 0.7.0 of `@finastra/nestjs-proxy`. Users of `@ffdc/nestjs-proxy` are advised that this package has been deprecated and is no longer being maintained or receiving updates. Such users should update their package.json file to use `@finastra/nestjs-proxy` instead.

GitHub Advisory Database

The nestjs-proxy library did not have a way to block sensitive cookies (e.g. session cookies) from being forwarded to backend services configured by the application developer. This could have led to sensitive cookies being inadvertently exposed to such services that should not see them.

The patched version now blocks cookies from being forwarded by default. However developers can configure an allow-list of cookie names by using the allowedCookies config setting. Further details of this feature can be found in the library's README on Github or NPM.

Patches
  • This issue has been fixed in version 0.7.0 of @finastra/nestjs-proxy.
  • Users of @ffdc/nestjs-proxy are advised that this package has been deprecated and is no longer being maintained or receiving updates. Please update your package.json file to use @finastra/nestjs-proxy instead.
References
NVD (es)

NestJS Proxy es un módulo de NestJS para decorar y proxyar llamadas. En versiones anteriores a 0.7.0, la biblioteca nestjs-proxy no tenía una forma de bloquear las cookies confidenciales (por ejemplo, las cookies de sesión) para que no fueran reenviadas a los servicios backend configurados por el desarrollador de la aplicación. Esto podría haber conllevado que las cookies confidenciales fueran expuestas inadvertidamente a dichos servicios que no deberían verlas. La versión parcheada ahora bloquea el reenvío de cookies por defecto. Sin embargo, los desarrolladores pueden configurar una lista de nombres de cookies permitidos mediante el ajuste de configuración "allowedCookies". Este problema ha sido corregido en la versión 0.7.0 de "@finastra/nestjs-proxy". Es advertido a usuarios de "@ffdc/nestjs-proxy" que este paquete ha quedado obsoleto y ya no es mantenido ni recibe actualizaciones. Dichos usuarios deben actualizar su archivo package.json para usar "@finastra/nestjs-proxy" en su lugar

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31070 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-77mv-4rg7-r8qv changed 2023-11-08CC-BY-4.0
NVDCVE-2022-31070 changed 2026-06-17Public domain