Vulnerability Details : CVE-2023-26123
Potential exploit
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2023-26123
- cpe:2.3:a:raylib:raylib:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-26123
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 28 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-26123
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
Snyk |
CWE ids for CVE-2023-26123
-
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.Assigned by:
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
- nvd@nist.gov (Primary)
- report@snyk.io (Secondary)
References for CVE-2023-26123
-
https://github.com/raysan5/raylib/releases/tag/4.5.0
Release raylib v4.5 · raysan5/raylib · GitHubRelease Notes
-
https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
ADDED: Security check for `emscripten_run_script()` #2954 · raysan5/raylib@b436c8d · GitHubPatch
-
https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
Cross-site Scripting (XSS) in raysan5/raylib | CVE-2023-26123 | SnykExploit;Patch;Third Party Advisory
-
https://github.com/raysan5/raylib/issues/2954
[core] JS Injection/XSS Vulnerability in SetClipboardText · Issue #2954 · raysan5/raylib · GitHubExploit;Issue Tracking;Third Party Advisory
Jump to