CVE-2025-67731
JSON

8.7high

Servify Express does not enforce rate limiting when parsing JSON

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-qgc4-8p88-4w7m

Description

Servify Express is a Node.js package to start an Express server and log the port it's running on. Prior to 1.2, the Express server used express.json() without a size limit, which could allow attackers to send extremely large request bodies. This can cause excessive memory usage, degraded performance, or process crashes, resulting in a Denial of Service (DoS). Any application using the JSON parser without limits and exposed to untrusted clients is affected. The issue is not a flaw in Express itself, but in configuration. This issue is fixed in version 1.2. To work around, consider adding a limit option to the JSON parser, rate limiting at the application or reverse-proxy level, rejecting unusually large requests before parsing, or using a reverse proxy (such as NGINX) to enforce maximum request body sizes.

Affected

Product or packageVersionsReported by
Aarondoran servify-express< 1.2CVE List
servify-express (npm)before 1.2GitHub Advisory Database
servify-express.js servify_expressbefore 1.2NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770

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

What each source says

CVE List

Servify Express is a Node.js package to start an Express server and log the port it's running on. Prior to 1.2, the Express server used express.json() without a size limit, which could allow attackers to send extremely large request bodies. This can cause excessive memory usage, degraded performance, or process crashes, resulting in a Denial of Service (DoS). Any application using the JSON parser without limits and exposed to untrusted clients is affected. The issue is not a flaw in Express itself, but in configuration. This issue is fixed in version 1.2. To work around, consider adding a limit option to the JSON parser, rate limiting at the application or reverse-proxy level, rejecting unusually large requests before parsing, or using a reverse proxy (such as NGINX) to enforce maximum request body sizes.

GitHub Advisory Database
Impact

The Express server uses express.json() without a size limit, which can allow attackers to send extremely large request bodies. This may lead to excessive memory usage, degraded performance, or process crashes, resulting in a Denial of Service (DoS). Any application using the JSON parser without limits and exposed to untrusted clients is affected.

Patches

This issue is not a flaw in Express itself but in configuration. Users should set a request-size limit when enabling the JSON body parser. For example: app.use(express.json({ limit: "100kb" }));

Workarounds

Users can mitigate the issue without upgrading by:

  • Adding a limit option to the JSON parser
  • Implementing rate limiting at the application or reverse-proxy level
  • Rejecting unusually large requests before parsing
  • Using a reverse proxy (such as NGINX) to enforce maximum request body sizes
NVD (es)

Servify Express es un paquete de Node.js para iniciar un servidor Express y registrar el puerto en el que se está ejecutando. Antes de la versión 1.2, el servidor Express utilizaba express.json() sin un límite de tamaño, lo que podría permitir a los atacantes enviar cuerpos de solicitud extremadamente grandes. Esto puede causar un uso excesivo de memoria, un rendimiento degradado o fallos en el proceso, lo que resulta en una Denegación de Servicio (DoS). Cualquier aplicación que utilice el analizador JSON sin límites y esté expuesta a clientes no confiables se ve afectada. El problema no es una falla en Express en sí, sino en la configuración. Este problema está solucionado en la versión 1.2. Para solucionarlo, considere añadir una opción de límite al analizador JSON, limitar la tasa a nivel de aplicación o de proxy inverso, rechazar solicitudes inusualmente grandes antes del análisis, o utilizar un proxy inverso (como NGINX) para aplicar tamaños máximos de cuerpo de solicitud.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67731 changed 2025-12-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-qgc4-8p88-4w7m changed 2026-09-10CC-BY-4.0
NVDCVE-2025-67731 changed 2026-10-07Public domain