CVE-2023-26123
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | raysan5/raylib | 0 < 4.5.0 | affected |
Weaknesses
- CWE-79: Cross-site Scripting (XSS)
ADP Enrichment
CVE Program Container
Additional References
- https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
- https://github.com/raysan5/raylib/issues/2954
- https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
- https://github.com/raysan5/raylib/releases/tag/4.5.0
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
References
- https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
- https://github.com/raysan5/raylib/issues/2954
- https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
- https://github.com/raysan5/raylib/releases/tag/4.5.0
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.