CVE-2026-76842
JSON

8.8high

Mercado Pago Node.js SDK through 3.4.0 Path Injection via Unencoded Identifiers in Payment Clients

Severity
8.8high CVSS:4.0 by VulnCheck
Exploit likelihood
0.38% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

The Mercado Pago Node.js SDK interpolates caller-supplied identifiers into API request paths without percent-encoding them, so characters that are structural in a URL survive into the outgoing request. The payment (get, capture, cancel), paymentRefund (create, total, list, get), advancedPayment (get, capture, cancel, update, updateReleaseDate) and disbursementRefund (create, createAll, listAll) clients build their path as a template literal, for example RestClient.fetch(`/v1/payments/${id}`, ...) in src/clients/payment/get/index.ts. A dot-dot or slash sequence in the identifier is normalised by the WHATWG URL parser and redirects the request to a different endpoint, and a question mark appends attacker-chosen query parameters, in both cases carrying the merchant's own access token. An application that forwards an identifier influenced by an untrusted party into one of these methods without an ownership check therefore allows that party to reach other resources within the merchant's token scope. The repository already contains the intended helper, encodePathParam in src/utils/path.ts, which pull request 451 applied to roughly 29 other clients while leaving these unchanged.

Affected

Product or packageVersionsReported by
mercadopagoup to 3.4.0CVE List

All scores

VulnCheck8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
VulnCheck8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-22

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

What each source says

CVE List

The Mercado Pago Node.js SDK interpolates caller-supplied identifiers into API request paths without percent-encoding them, so characters that are structural in a URL survive into the outgoing request. The payment (get, capture, cancel), paymentRefund (create, total, list, get), advancedPayment (get, capture, cancel, update, updateReleaseDate) and disbursementRefund (create, createAll, listAll) clients build their path as a template literal, for example RestClient.fetch(`/v1/payments/${id}`, ...) in src/clients/payment/get/index.ts. A dot-dot or slash sequence in the identifier is normalised by the WHATWG URL parser and redirects the request to a different endpoint, and a question mark appends attacker-chosen query parameters, in both cases carrying the merchant's own access token. An application that forwards an identifier influenced by an untrusted party into one of these methods without an ownership check therefore allows that party to reach other resources within the merchant's token scope. The repository already contains the intended helper, encodePathParam in src/utils/path.ts, which pull request 451 applied to roughly 29 other clients while leaving these unchanged.

NVD (es)

El SDK de Node.js de Mercado Pago interpola identificadores proporcionados por el llamador en las rutas de solicitud de la API sin aplicarles codificación porcentual, de modo que los caracteres que son estructurales en una URL sobreviven en la solicitud saliente. Los clientes de payment (get, capture, cancel), paymentRefund (create, total, list, get), advancedPayment (get, capture, cancel, update, updateReleaseDate) y disbursementRefund (create, createAll, listAll) construyen su ruta como un literal de plantilla, por ejemplo, RestClient.fetch('/v1/payments/${id}', ...) en src/clients/payment/get/index.ts. Una secuencia de punto-punto o barra en el identificador es normalizada por el analizador de URL de WHATWG y redirige la solicitud a un endpoint diferente, y un signo de interrogación añade parámetros de consulta elegidos por el atacante, en ambos casos llevando el token de acceso propio del comerciante. Una aplicación que reenvía un identificador influenciado por una parte no confiable a uno de estos métodos sin una verificación de propiedad, por lo tanto, permite a esa parte alcanzar otros recursos dentro del alcance del token del comerciante. El repositorio ya contiene la función auxiliar prevista, encodePathParam en src/utils/path.ts, la cual la pull request 451 aplicó a aproximadamente otros 29 clientes mientras dejaba estos sin cambios.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-76842 changed 2026-08-29CVE Terms of Use
NVDCVE-2026-76842 changed 2026-10-14Public domain