Katalog CVE

CVE-2026-76842

WysokieCVSS 8.2
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.38%

Percentyl 31 - wyżej niż 31% wszystkich znanych CVE

Streszczenie

Mercado Pago Node.js SDK nie koduje identyfikatorów w ścieżkach API, co pozwala na manipulację żądaniami. Atakujący może przekierować żądanie do innego endpointu lub dodać parametry zapytania, wykorzystując token dostępu sprzedawcy.

Ocena ryzyka

Jeśli aplikacja przekazuje identyfikatory od niezaufanych użytkowników bez kontroli własności, atakujący może uzyskać dostęp do innych zasobów w zakresie tokena sprzedawcy.

Rekomendacja

Zaktualizuj SDK do wersji, która zawiera poprawkę (pull request 451) lub zastosuj kodowanie ścieżek (encodePathParam) dla wszystkich metod. Dodatkowo zawsze sprawdzaj własność zasobów przed przekazaniem identyfikatora.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS