CVE-2023-26123

published 14 Apr 2023 · updated 6 Feb 2025

Versions of the package raysan5/raylib before 4.5.0 are vulnerable to Cross-site Scripting (XSS) such that the SetClipboardText API does…

6.1MediumCVSS 6.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 4.5.0.

Versions of the package raysan5/raylib before 4.5.0 are vulnerable to Cross-site Scripting (XSS) such that the SetClipboardText API does not properly escape the ' character, allowing attacker-controlled input to break out of the string and execute arbitrary JavaScript via emscripten_run_script function. **Note:** This vulnerability is present only when compiling raylib for PLATFORM_WEB. All the other Desktop/Mobile/Embedded platforms are not affected.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<4.5.04.5.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-26123 severity on Zeptric[![CVE-2023-26123](https://zeptric.io/badge/cve/CVE-2023-26123.svg)](https://zeptric.io/cve/CVE-2023-26123)