CVE-2023-26123
6.1medium
Versions of the package raysan5/raylib before 4.5.0 are vulnerable to Cross-site Scripting (XSS) such that the SetClipboardText API does no…
- Severity
- 6.1medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| raysan5/raylib | before 4.5.0 | CVE List |
| raylib raylib | before 4.5.0 | NVD |
All scores
| snyk | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
References
| https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 | exploit, patch, third-party-advisory | |
| https://github.com/raysan5/raylib/issues/2954 | exploit, issue-tracking, third-party-advisory | |
| https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d | patch | |
| https://github.com/raysan5/raylib/releases/tag/4.5.0 | release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26123 changed 2025-02-06 | CVE Terms of Use |
| NVD | CVE-2023-26123 changed 2026-06-17 | Public domain |