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-346
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-346: Origin Validation Error

Abstraction
Class
Related CVEs
23

Description

The product does not properly verify that the source of data or communication is valid.

How attackers exploit CWE-346

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-escalationT1185Browser Session HijackingcollectionT1528Steal Application Access Tokencredential-access

Step-by-step: how CWE-346 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

Related CVEs

HighCVE-2026-85152Security vulnerability in undici
HighCVE-2026-85152Security vulnerability in undici
MediumCVE-2025-30360Security vulnerability in webpack-dev-server

References & documentation

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

Weakness facts

IDCWE-346
AbstractionClass
Related CVEs23

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
T1539
Steal Web Session Cookie
credential-access
T1550Use Alternate Authentication Materiallateral-movement
T1557Adversary-in-the-Middlecredential-access · collection
T1563Remote Service Session Hijackinglateral-movement
T1584Compromise Infrastructureresource-development
T1606Forge Web Credentialscredential-access

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

  • 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.

  • 3
    Lateral movementlateral-movement

    Pivot from the compromised system to others on the network.

    At risk / what's stolen

    Adjacent servers, databases, and internal services reachable from the foothold.

    How you defend

    Segmentation, per-service auth, and blocking reused credentials across systems.

  • 4
    Collectioncollection

    Gather the valuable data before taking it out.

    At risk / what's stolen

    Databases, files, customer records, source code, and business data.

    How you defend

    Data-access monitoring, encryption at rest, and least-privilege data access.

  • 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-2026-9595Security vulnerability in webpack-dev-server
    MediumCVE-2026-9595Security vulnerability in webpack-dev-server
    MediumCVE-2025-30360Security vulnerability in webpack-dev-server
    MediumCVE-2026-9595Security vulnerability in webpack-dev-server
    MediumCVE-2025-30360Security vulnerability in webpack-dev-server
    MediumCVE-2025-24010Security vulnerability in vite
    CriticalCVE-2026-6734Security vulnerability in undici
    HighCVE-2026-6734Security vulnerability in undici
    MediumCVE-2025-30360Security vulnerability in webpack-dev-server
    MediumCVE-2026-9595Security vulnerability in webpack-dev-server
    CriticalCVE-2017-6519Security vulnerability in avahi
    HighCVE-2026-6734Security vulnerability in undici
    MediumCVE-2025-24010Security vulnerability in vite
    MediumCVE-2020-28481Security vulnerability in socket.io
    MediumCVE-2025-24010Security vulnerability in vite
    MediumCVE-2025-24010Security vulnerability in vite
    HighCVE-2026-55487Security vulnerability in pnpm
    MediumCVE-2026-9595Security vulnerability in webpack-dev-server
    MediumGHSA-9jgg-88mc-972hSecurity vulnerability in webpack-dev-server
    HighCVE-2026-47265Security vulnerability in aiohttp