CVE-2023-26123

MEDIUM EPSS 43.5%
Published Apr 14, 20233y ago · Modified Jun 17, 20262w ago
6.1 CVSS 3.1
Medium
Find Similar
Published Apr 14, 2023 3y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
6.1
Exploitability
2.8
Impact
2.7
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Changed
Confidentiality Low
Integrity Low
Availability None

Threat Intelligence

EPSS Exploit Probability
43.5% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-79 Cross-site Scripting Injection

Affected Products 1

VendorProductVersionRange
raylibraylib* <4.5.0

References 4

  • github.com https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
    Patch
  • github.com https://github.com/raysan5/raylib/issues/2954
    ExploitIssue TrackingThird Party Advisory
  • github.com https://github.com/raysan5/raylib/releases/tag/4.5.0
    Release Notes
  • security.snyk.io https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
    ExploitPatchThird Party Advisory

Remediation

  • github.com https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d
    Patch
  • security.snyk.io https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188
    ExploitPatchThird Party Advisory