---
title: "CWE-79: Cross-site Scripting"
slug: cwe-79
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 109
url: https://morningstarsecurity.com/wiki/cwe-79
exported: 2026-11-20 02:41 UTC
---

# CWE-79: Cross-site Scripting
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-79: Cross-site Scripting, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-79: Cross-site Scripting (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/cwe-79". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product does not neutralize user-controllable input before it is placed in output used as a web page.

## Entry
Cross-site Scripting (XSS) is a vulnerability class in which a product fails to neutralize user-controllable input before placing it in output used as a web page [1].

### Classification

CWE-79 is classified as a base-level abstraction [1], representing a fundamental input validation and output encoding weakness [1].

### Consequences

XSS vulnerabilities enable attackers to inject malicious scripts into web pages [2]. When executed in a victim's browser context, these scripts can perform various attacks with limited utility for direct system compromise [3].

Reported consequences include:

- **Credential and session compromise**: Execution of malicious JavaScript leading to account takeover, credential theft via fake login dialogs, and session hijacking [1][4][5]
- **Malicious redirection**: Redirection of users to attacker-controlled websites [1]
- **Code execution**: Arbitrary code execution within the user's browser context
- **Data theft**: General data exfiltration from the compromised session [5]

The vulnerability enables code injection attacks and can be leveraged through malicious attachments and crafted input fields.

### Related Concepts

XSS is fundamentally an improper neutralization of input during web page generation, allowing attackers to bypass intended security boundaries and execute unauthorized operations within a user's authenticated session.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-79
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 109)
1. Rockwell Automation FactoryTalk DataMosaix · CISA Advisories · 16 Jul 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-197-09
2. EP289 Software Engineering vs. Software Craft: How Google Scalably Eliminates Classes of Vulnerab... · Cloud Security Podcast by Google (video) · 3 Aug 2026 · https://www.youtube.com/watch?v=sNfftJoIRG0
3. What exploited vulnerabilities have in common: A data-driven analysis of real-world attacks · Microsoft Security Blog · 2 Nov 2026 · https://www.microsoft.com/en-us/security/blog/2026/11/02/exploited-vulnerabilities-common-data-driven-analysis-real-world-attacks/
4. SANS Stormcast Friday, July 24th, 2026: OpenAI vs. Huggingface; Zimbra Exploited; Notepad++ Abuse; Browser as C2 · SANS ISC: Daily Podcast (podcast) · 24 Jul 2026 · https://isc.sans.edu/podcastdetail/10022
5. Attack Surface Monitoring vs DAST: Why security teams need both · Detectify · 11 Jun 2026 · https://blog.detectify.com/best-practices/attack-surface-monitoring-vs-dast-why-security-teams-need-both/

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-79 taken 20 Nov 2026 02:41 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-79
