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 package | Versions | Reported by |
|---|---|---|
| Finastra finastra-nodejs-libs | < 0.7.0 | CVE List |
| @finastra/nestjs-proxy (npm) | before 0.7.0 | GitHub Advisory Database |
| finastra nestjs-proxy | before 0.7.0 | NVD |
| nestjs-proxy_project nestjs-proxy | up to 0.4.0 | NVD |
All scores
| GitHub_M | 5.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 5.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
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-proxyare 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-proxyinstead.
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
| https://github.com/Finastra/finastra-nodejs-libs/security/advisories/GHSA-77mv-4rg7-r8qv | third-party-advisory, web | |
| https://github.com/Finastra/finastra-nodejs-libs/pull/232 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31070 | advisory | |
| https://github.com/Finastra/finastra-nodejs-libs | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31070 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-77mv-4rg7-r8qv changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-31070 changed 2026-06-17 | Public domain |