{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-26123",
        "ASSIGNER": "report@snyk.io",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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.\r\r**Note:** This vulnerability is present only when compiling raylib for PLATFORM_WEB. All the other Desktop/Mobile/Embedded platforms are not affected."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Cross-site Scripting (XSS)",
                        "cweId": "CWE-79"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "raysan5/raylib",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "4.5.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188",
                "refsource": "MISC",
                "name": "https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188"
            },
            {
                "url": "https://github.com/raysan5/raylib/issues/2954",
                "refsource": "MISC",
                "name": "https://github.com/raysan5/raylib/issues/2954"
            },
            {
                "url": "https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d",
                "refsource": "MISC",
                "name": "https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d"
            },
            {
                "url": "https://github.com/raysan5/raylib/releases/tag/4.5.0",
                "refsource": "MISC",
                "name": "https://github.com/raysan5/raylib/releases/tag/4.5.0"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Eugene Lim"
        }
    ],
    "impact": {
        "cvss": [
            {
                "version": "3.1",
                "attackVector": "NETWORK",
                "attackComplexity": "LOW",
                "privilegesRequired": "NONE",
                "userInteraction": "REQUIRED",
                "scope": "CHANGED",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "availabilityImpact": "NONE",
                "baseScore": 6.1,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P"
            }
        ]
    }
}