Retool versions 3.253.0 before 3.253.19, 3.254.0 before 3.284.12, and 3.285.0 before 3.300.4 contain a DOM-based cross-site scripting (XSS) vulnerability. This flaw exists in the custom-component-collections.html postMessage handler, which imports code from received postMessage events without validating their origin. An unauthenticated attacker can exploit this by sending crafted postMessage events that load attacker-controlled JavaScript via data:text/javascript URIs, resulting in arbitrary script execution in the victim's browser context. The vulnerability was first observed exploited in the wild by the Shadowserver Foundation on April 22, 2026. The CVSS v3.1 base score is 6.1, indicating medium severity.