# 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 no…

- Severity: Medium 6.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-04-14T05:00:01.188Z
- Modified: 2026-06-17T05:42:43.750Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- raysan5/raylib: before 4.5.0
- raylib raylib: before 4.5.0

## Every score

- snyk: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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

- CVE List: [CVE-2023-26123](https://www.cve.org/CVERecord?id=CVE-2023-26123), CVE Terms of Use, modified 2025-02-06
- NVD: [CVE-2023-26123](https://nvd.nist.gov/vuln/detail/CVE-2023-26123), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26123 · Whole record: https://cve.day/CVE-2023-26123.json · Rebuilt by cve.day 2026-11-25T22:58:23.489Z
