GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-352
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-352: Cross-Site Request Forgery (CSRF)

Abstraction
Base
OWASP Top 10
A01:2021 (#1)
Exploit Likelihood
Medium
Related CVEs
19

Description

The application accepts state-changing requests without verifying they were intentionally sent by the user.

How to mitigate

  • Use anti-CSRF tokens and SameSite cookies; require re-authentication for critical actions.

How attackers exploit CWE-352

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1134Access Token Manipulationstealth · privilege-escalationT1528Steal Application Access Tokencredential-accessT1539Steal Web Session Cookiecredential-access

Related CVEs

MediumCVE-2026-14620Security vulnerability in webpack-dev-server
MediumCVE-2026-14620Security vulnerability in webpack-dev-server
MediumCVE-2026-14620Security vulnerability in webpack-dev-server

References & documentation

  • https://cwe.mitre.org/data/definitions/352.html
  • NVD CWE listing

Weakness facts

IDCWE-352
AbstractionBase
OWASP Top 10A01:2021 (#1)
Exploit LikelihoodMedium
Related CVEs19

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard

Step-by-step: how CWE-352 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Privilege escalationprivilege-escalation

    Gain higher privileges — from a limited account to admin/root.

    At risk / what's stolen

    Over-permissioned services, weak file/permission boundaries, and setuid paths.

    How you defend

    Drop privileges, enforce least privilege, and lock down file permissions.

  2. 2
    Credential accesscredential-access

    Steal passwords, tokens, keys, and session material.

    At risk / what's stolen

    Passwords, API keys, session tokens, SSH/TLS keys, and secrets in memory, env, or config.

    How you defend

    Secret managers, short-lived tokens, and no secrets in code/env/logs.

This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.

MediumCVE-2023-49854Security vulnerability in caddy
MediumCVE-2026-27589Security vulnerability in caddy
MediumCVE-2008-3909Security vulnerability in django
MediumCVE-2011-4140Security vulnerability in django
MediumCVE-2026-14620Security vulnerability in webpack-dev-server
HighCVE-2024-34069Security vulnerability in werkzeug
MediumCVE-2015-3096Security vulnerability in air
HighCVE-2023-31999Security vulnerability in oauth2
LowCVE-2025-49462Security vulnerability in zoom
HighCVE-2023-36682Security vulnerability in schema
MediumCVE-2023-25058Security vulnerability in schema
MediumCVE-2021-4399Security vulnerability in bridge
MediumGHSA-f5vj-f2hx-8m93Security vulnerability in webpack-dev-server
MediumCVE-2015-3096Security vulnerability in air
MediumCVE-2020-13868Security vulnerability in comments
HighCVE-2018-14668Security vulnerability in clickhouse