Cross-site scripting in raysan5/raylib
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | raysan5/raylib | before 4.5.0 | 4.5.0 | Patch available | CNA |
- raysan5/raylib Vendor— Affected before 4.5.0 Fixed in 4.5.0 Patch available CNA
Remediation
- Fix · CNA raysan5/raylib Fixed in 4.5.0
Timeline
- 2026-10-02 Threatist record created from CVE-2023-26123
- 2026-10-03 Alias added: GHSA-62mx-2499-jrm4
References
More Raylib vulnerabilities
- TI-2025-14173 raysan5 raylib rtext.c LoadFontData integer overflow CVSS 4.0MEDIUM 4.8
- TI-2025-14172 raysan5 raylib rtext.c GenImageFontAtlas heap-based overflow CVSS 4.0MEDIUM 4.8
Sources
- CVE-2023-26123 · CVE Program
- CVE-2023-26123 · NVD
- FIRST EPSS
- GHSA-62mx-2499-jrm4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences