Intel

AIKIDO-2026-266515

mercadopago/dx-php is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

59

Medium Risk

This Affects:

PHPmercadopago/dx-php
3.0.0 - 3.12.0
Fixed in 3.12.1
Are you affected? Scan for Free

TL;DR

Several client methods in the Mercado Pago PHP SDK build API request paths by interpolating caller-supplied string identifiers into URL templates with sprintf without URL-encoding them. When an application forwards attacker-controlled identifier values into methods such as order, customer card, chargeback, preference, and point lookups, values containing path separators or ../ sequences can alter the request path and make the SDK target unintended API endpoints. The fix wraps the identifier parameters in rawurlencode before constructing the path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes attacker-controlled identifier values into the affected client methods.

Background info

mercadopago/dx-php is vulnerable to Path Traversal in versions 3.0.0 - 3.12.0.

How to fix this

Upgrade the mercadopago/dx-php library to the patch version.