XSS in Raylib

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-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 class: XSS (Cross-Site Scripting)

EPSS: 0.006 (45.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

  • Raylib
  • N/a Raysan5/raylib — versions 0

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2023-26123?
CVE-2023-26123 is a medium-severity vulnerability in Raylib, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2023-04-14.
How severe is CVE-2023-26123?
Medium severity. CVSS v3 base score is 6.1 out of 10.