BaseStableTop 25 #1
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Category: other
Description
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Common consequences· 3
- Access Control / Confidentiality — Bypass Protection Mechanism, Read Application DataThe most common attack performed with cross-site scripting involves the disclosure of private information stored in user cookies, such as session information. Typically, a malicious user will craft a client-side script, which -- when parsed by a web browser -- performs some activity on behalf of the victim to an attacker-controlled system (such as sending all site cookies to a given E-mail address). This could be especially dangerous to the site if the victim has administrator privileges to manage that site. This script will be loaded and run by each user visiting the web site. Since the site requesting to run the script has access to the cookies in question, the malicious script does also.
- Integrity / Confidentiality / Availability — Execute Unauthorized Code or CommandsIn some circumstances it may be possible to run arbitrary code on a victim's computer when cross-site scripting is combined with other flaws, for example, "drive-by hacking."
- Confidentiality / Integrity / Availability / Access Control — Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application DataThe consequence of an XSS attack is the same regardless of whether it is stored or reflected. The difference is in how the payload arrives at the server. XSS can cause a variety of problems for the end user that range in severity from an annoyance to complete account compromise. Some cross-site scripting vulnerabilities can be exploited to manipulate or steal cookies, create requests that can be mistaken for those of a valid user, compromise confidential information, or execute malicious code on the end user systems for a variety of nefarious purposes. Other damaging attacks include the disclosure of end user files, installation of Trojan horse programs, redirecting the user to some other page or site, running "Active X" controls (under Microsoft Internet Explorer) from sites that a user perceives as trustworthy, and modifying presentation of content.
Potential mitigations· 5
- [Architecture and Design]
- [Implementation, Architecture and Design]
- [Architecture and Design, Implementation]Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls.
- [Architecture and Design]For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
- [Architecture and Design]If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated.
Related CAPEC attack patterns· 6
References
Exploits (incoming)5
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | XSS Using MIME Type Mismatchcapec-209 | 100% | live |
| AttackPattern | AJAX Footprintingcapec-85 | 100% | live |
| AttackPattern | Stored XSScapec-592 | 100% | live |
| AttackPattern | Cross-Site Scripting (XSS)capec-63 | 100% | live |
| AttackPattern | Reflected XSScapec-591 | 100% | live |
Compliance frameworks addressing this (incoming)16
| Type | Target | Confidence | Tier |
|---|---|---|---|
| ComplianceControl | tiber_eu-generic | 100% | live |
| ComplianceControl | owasp_llm_top10-llm01 | 100% | live |
| ComplianceControl | cis_v8-18 | 100% | live |
| ComplianceControl | iso27001-a.5.7 | 100% | live |
| ComplianceControl | tiber_eu-preparation | 100% | live |
| ComplianceControl | ai_act-art72 | 100% | live |
| ComplianceControl | pci_dss_v4-r11 | 100% | live |
| ComplianceControl | iso27001-a.8.8 | 100% | live |
| ComplianceControl | nist_csf-pr | 100% | live |
| ComplianceControl | dora-art13 | 100% | live |
| ComplianceControl | iso27001-a.8.28 | 100% | live |
| ComplianceControl | cis_v8-7 | 100% | live |
| ComplianceControl | cra-art14 | 100% | live |
| ComplianceControl | dora-art7 | 100% | live |
| ComplianceControl | gdpr-art5 | 100% | live |
| ComplianceControl | owasp_llm_top10-llm05 | 100% | live |
(incoming)129
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-0248cve-2025-0248 | 0% | live |
| Vulnerability | CVE-2025-0443cve-2025-0443 | 0% | live |
| Vulnerability | CVE-2025-0447cve-2025-0447 | 0% | live |
| Vulnerability | CVE-2025-0530cve-2025-0530 | 0% | live |
| Vulnerability | CVE-2025-0595cve-2025-0595 | 0% | live |
| Vulnerability | CVE-2025-0602cve-2025-0602 | 0% | live |
| Vulnerability | CVE-2025-0827cve-2025-0827 | 0% | live |
| Vulnerability | CVE-2025-0984cve-2025-0984 | 0% | live |
| Vulnerability | CVE-2025-10240cve-2025-10240 | 0% | live |
| Vulnerability | CVE-2025-10244cve-2025-10244 | 0% | live |
| Vulnerability | CVE-2025-10467cve-2025-10467 | 0% | live |
| Vulnerability | CVE-2025-10534cve-2025-10534 | 0% | live |
| Vulnerability | CVE-2025-10555cve-2025-10555 | 0% | live |
| Vulnerability | CVE-2025-10913cve-2025-10913 | 0% | live |
| Vulnerability | CVE-2025-11892cve-2025-11892 | 0% | live |
| Vulnerability | CVE-2025-11956cve-2025-11956 | 0% | live |
| Vulnerability | CVE-2025-12029cve-2025-12029 | 0% | live |
| Vulnerability | CVE-2025-1232cve-2025-1232 | 0% | live |
| Vulnerability | CVE-2025-12486cve-2025-12486 | 0% | live |
| Vulnerability | CVE-2025-12716cve-2025-12716 | 0% | live |
| Vulnerability | CVE-2025-13614cve-2025-13614 | 0% | live |
| Vulnerability | CVE-2025-13639cve-2025-13639 | 0% | live |
| Vulnerability | CVE-2025-13761cve-2025-13761 | 0% | live |
| Vulnerability | CVE-2025-14320cve-2025-14320 | 0% | live |
| Vulnerability | CVE-2025-14499cve-2025-14499 | 0% | live |
| Vulnerability | CVE-2025-1763cve-2025-1763 | 0% | live |
| Vulnerability | CVE-2025-21612cve-2025-21612 | 0% | live |
| Vulnerability | CVE-2025-22219cve-2025-22219 | 0% | live |
| Vulnerability | CVE-2025-22249cve-2025-22249 | 0% | live |
| Vulnerability | CVE-2025-22466cve-2025-22466 | 0% | live |
Showing top 30 of 129 by confidence. Click any target to see the full neighbourhood.
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.