CVE-2023-26123
Severity CVSS v4.0:
Pending analysis
Type:
CWE-79
Cross-Site Scripting (XSS)
Publication date:
14/04/2023
Last modified:
06/02/2025
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 &#39; character, allowing attacker-controlled input to break out of the string and execute arbitrary JavaScript via emscripten_run_script function.<br />
<br />
**Note:** This vulnerability is present only when compiling raylib for PLATFORM_WEB. All the other Desktop/Mobile/Embedded platforms are not affected.
Impact
Base Score 3.x
6.10
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:raylib:raylib:*:*:*:*:*:*:*:* | 4.5.0 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
- https://github.com/raysan5/raylib/issues/2954
- https://github.com/raysan5/raylib/releases/tag/4.5.0
- https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
- https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
- https://github.com/raysan5/raylib/issues/2954
- https://github.com/raysan5/raylib/releases/tag/4.5.0
- https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188



