CVE-2023-26123
Raylib vulnerability
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 products
Raylib. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Raylib runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d · Patch
- security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 · Exploit
- github.com/raysan5/raylib/issues/2954 · Exploit
- github.com/raysan5/raylib/releases/tag/4.5.0
- nvd.nist.gov/vuln/detail/CVE-2023-26123
- cve.org/CVERecord?id=CVE-2023-26123
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.