
CVE-2025-24201 WebKit Vulnerability Detector (PoC)
This proof-of-concept detects whether a WebKit-based browser is vulnerable to CVE‑2025‑24201, a high-severity out-of-bounds write vulnerability caused by incorrect capability validation in the WebGL implementation.
CVE‑2025‑24201 is triggered when a WebGLRenderingContext (WebGL 1) allows enabling the constant PRIMITIVE_RESTART_FIXED_INDEX (0x8D69) — a capability only valid in WebGL 2 — without generating a GL_INVALID_OPERATION or GL_INVALID_ENUM error.
This misbehavior can lead to memory corruption during draw calls involving index buffers.
The PoC:
canvas.getContext("webgl").0x8D69.gl.getError().If no error is returned, the implementation is likely vulnerable.
index.html – The standalone HTML file that performs the detection and prints result + internal log to screen.README.md – This file.Simply open the index.html file in the browser you want to test.
Expected results:
🛡️ Safe – error returned → Not vulnerable✅ VULNERABLE – no error on gl.enable(0x8D69) → VulnerableThe_Maxu