CVE-2023-26123
MEDIUM 6.1CVSS 3.1Versions 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.
- Published
- 14 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | raylib | raylibcpe:2.3:a:raylib:raylib:*:*:*:*:*:*:*:* |
< 4.5.0 | 4.5.0 |
References
- https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d · Patch
- https://github.com/raysan5/raylib/issues/2954 · Exploit, Issue Tracking, Third Party Advisory
- https://github.com/raysan5/raylib/releases/tag/4.5.0 · Release Notes
- https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 · Exploit, Patch, Third Party Advisory
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 14 Apr 2023)