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.
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Link | Tags |
---|---|
https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 | patch third party advisory exploit |
https://github.com/raysan5/raylib/issues/2954 | third party advisory issue tracking exploit |
https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d | patch |
https://github.com/raysan5/raylib/releases/tag/4.5.0 | release notes |