CVE-2024-26466: n/a
A DOM based cross-site scripting (XSS) vulnerability in the component /dom/ranges/Range-test-iframe.html of web-platform-tests/wpt before commit 938e843 allows attackers to execute arbitrary Javascript via sending a crafted URL.
AI Analysis
Technical Summary
CVE-2024-26466 is a DOM-based cross-site scripting (XSS) vulnerability identified in the web-platform-tests (wpt) project, specifically in the /dom/ranges/Range-test-iframe.html component. The vulnerability exists because the component improperly handles user-controllable input within the Document Object Model (DOM), allowing an attacker to inject and execute arbitrary JavaScript code by crafting a malicious URL. This type of XSS is client-side and does not rely on server-side code injection, making it particularly relevant in browser testing environments or any context where the vulnerable test files are loaded. The vulnerability was present before commit 938e843, and no specific affected versions are listed, indicating it may affect all versions prior to that commit. The CVSS 3.1 base score is 6.1, reflecting a medium severity with the following vector: Attack Vector Network (AV:N), Attack Complexity Low (AC:L), Privileges Required None (PR:N), User Interaction Required (UI:R), Scope Changed (S:C), Confidentiality Low (C:L), Integrity Low (I:L), and Availability None (A:N). This means an attacker can exploit the vulnerability remotely without authentication but requires a user to interact with a crafted URL. The scope change indicates that the vulnerability can affect resources beyond the vulnerable component itself. While no known exploits are reported in the wild, the vulnerability poses a risk in environments where web-platform-tests are used for browser or web standard testing, potentially allowing malicious scripts to run in the context of the test environment. The CWE classification is CWE-79, which covers cross-site scripting vulnerabilities. No patches or mitigations have been linked yet, so users should monitor the web-platform-tests repository for updates and consider restricting access to vulnerable test files until a fix is available.
Potential Impact
The primary impact of CVE-2024-26466 is the potential execution of arbitrary JavaScript code within the context of the vulnerable web-platform-tests environment. This can lead to partial compromise of confidentiality and integrity, such as theft of sensitive information or manipulation of test results. Since the vulnerability is DOM-based and requires user interaction, it is less likely to cause widespread automated exploitation but can be leveraged in targeted attacks or social engineering scenarios. The scope change in the CVSS vector indicates that the attack can affect resources beyond the immediate vulnerable component, potentially impacting other parts of the testing environment or browser context. Organizations relying on web-platform-tests for browser development, testing, or quality assurance may face risks of corrupted test outcomes or exposure of internal testing data. However, since this vulnerability does not affect production web applications directly and no known exploits exist in the wild, the immediate risk to end-user systems is limited. Nonetheless, compromised testing environments can indirectly affect software quality and security if malicious code is introduced or test results are manipulated. The medium severity rating reflects this moderate risk profile.
Mitigation Recommendations
To mitigate CVE-2024-26466, organizations and developers using web-platform-tests should: 1) Monitor the official web-platform-tests repository and security advisories for patches or updates addressing this vulnerability and apply them promptly once available. 2) Restrict access to the vulnerable /dom/ranges/Range-test-iframe.html component and related test files to trusted users only, minimizing exposure to untrusted or external users. 3) Educate users involved in testing about the risks of interacting with untrusted URLs or links that could exploit this DOM-based XSS vulnerability. 4) Implement Content Security Policy (CSP) headers in testing environments to limit the execution of unauthorized scripts and reduce the impact of potential XSS attacks. 5) Consider sandboxing or isolating the testing environment to prevent any malicious script execution from affecting other systems or networks. 6) Review and harden the input handling and DOM manipulation code in custom test components to prevent similar vulnerabilities. 7) Use browser security features and extensions that can detect or block XSS attempts during testing. These steps go beyond generic advice by focusing on controlling access, user awareness, and environment isolation specific to the testing context.
Affected Countries
United States, Germany, United Kingdom, Japan, South Korea, France, Canada, Netherlands, Australia, Sweden
CVE-2024-26466: n/a
Description
A DOM based cross-site scripting (XSS) vulnerability in the component /dom/ranges/Range-test-iframe.html of web-platform-tests/wpt before commit 938e843 allows attackers to execute arbitrary Javascript via sending a crafted URL.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-26466 is a DOM-based cross-site scripting (XSS) vulnerability identified in the web-platform-tests (wpt) project, specifically in the /dom/ranges/Range-test-iframe.html component. The vulnerability exists because the component improperly handles user-controllable input within the Document Object Model (DOM), allowing an attacker to inject and execute arbitrary JavaScript code by crafting a malicious URL. This type of XSS is client-side and does not rely on server-side code injection, making it particularly relevant in browser testing environments or any context where the vulnerable test files are loaded. The vulnerability was present before commit 938e843, and no specific affected versions are listed, indicating it may affect all versions prior to that commit. The CVSS 3.1 base score is 6.1, reflecting a medium severity with the following vector: Attack Vector Network (AV:N), Attack Complexity Low (AC:L), Privileges Required None (PR:N), User Interaction Required (UI:R), Scope Changed (S:C), Confidentiality Low (C:L), Integrity Low (I:L), and Availability None (A:N). This means an attacker can exploit the vulnerability remotely without authentication but requires a user to interact with a crafted URL. The scope change indicates that the vulnerability can affect resources beyond the vulnerable component itself. While no known exploits are reported in the wild, the vulnerability poses a risk in environments where web-platform-tests are used for browser or web standard testing, potentially allowing malicious scripts to run in the context of the test environment. The CWE classification is CWE-79, which covers cross-site scripting vulnerabilities. No patches or mitigations have been linked yet, so users should monitor the web-platform-tests repository for updates and consider restricting access to vulnerable test files until a fix is available.
Potential Impact
The primary impact of CVE-2024-26466 is the potential execution of arbitrary JavaScript code within the context of the vulnerable web-platform-tests environment. This can lead to partial compromise of confidentiality and integrity, such as theft of sensitive information or manipulation of test results. Since the vulnerability is DOM-based and requires user interaction, it is less likely to cause widespread automated exploitation but can be leveraged in targeted attacks or social engineering scenarios. The scope change in the CVSS vector indicates that the attack can affect resources beyond the immediate vulnerable component, potentially impacting other parts of the testing environment or browser context. Organizations relying on web-platform-tests for browser development, testing, or quality assurance may face risks of corrupted test outcomes or exposure of internal testing data. However, since this vulnerability does not affect production web applications directly and no known exploits exist in the wild, the immediate risk to end-user systems is limited. Nonetheless, compromised testing environments can indirectly affect software quality and security if malicious code is introduced or test results are manipulated. The medium severity rating reflects this moderate risk profile.
Mitigation Recommendations
To mitigate CVE-2024-26466, organizations and developers using web-platform-tests should: 1) Monitor the official web-platform-tests repository and security advisories for patches or updates addressing this vulnerability and apply them promptly once available. 2) Restrict access to the vulnerable /dom/ranges/Range-test-iframe.html component and related test files to trusted users only, minimizing exposure to untrusted or external users. 3) Educate users involved in testing about the risks of interacting with untrusted URLs or links that could exploit this DOM-based XSS vulnerability. 4) Implement Content Security Policy (CSP) headers in testing environments to limit the execution of unauthorized scripts and reduce the impact of potential XSS attacks. 5) Consider sandboxing or isolating the testing environment to prevent any malicious script execution from affecting other systems or networks. 6) Review and harden the input handling and DOM manipulation code in custom test components to prevent similar vulnerabilities. 7) Use browser security features and extensions that can detect or block XSS attempts during testing. These steps go beyond generic advice by focusing on controlling access, user awareness, and environment isolation specific to the testing context.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2024-02-19T00:00:00.000Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6d77b7ef31ef0b57260e
Added to database: 2/25/2026, 9:45:27 PM
Last enriched: 2/28/2026, 10:03:51 AM
Last updated: 4/12/2026, 3:46:34 PM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.