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 emscriptenrunscript function.
Note: This vulnerability is present only when compiling raylib for PLATFORM_WEB. All the other Desktop/Mobile/Embedded platforms are not affected.
{
"sources": [
{
"imported": "2026-05-24T08:59:51.411Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-26123",
"database_specific": {
"status": "Modified"
},
"published": "2023-04-14T05:15:13.867Z",
"id": "CVE-2023-26123",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-26123",
"modified": "2025-02-06T21:15:18.370Z"
}
],
"license": "CC-BY-4.0"
}