Description
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.
References (4)
Core 4
Core References
Exploit, Issue Tracking, Third Party Advisory
https://github.com/raysan5/raylib/issues/2954
Release Notes
https://github.com/raysan5/raylib/releases/tag/4.5.0
Exploit, Patch, Third Party Advisory
https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
Scores
CVSS v3
6.1
EPSS
0.0027
EPSS Percentile
50.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (1)
raylib/raylib
< 4.5.0
Published
Apr 14, 2023
Tracked Since
Feb 18, 2026