CVE-2023-26123 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-controll...
MediumCVSS 6.1
EPSS 0.58%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| raylib | < 4.5.0 | 4.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| raylib | < 4.5.0 | 4.5.0 |
References
- security.snyk.io exploit patch third-party-advisory
- github.com exploit issue-tracking third-party-advisory
- github.com patch
- github.com release-notes