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

CWE-1321: Prototype Pollution

Abstraction
Base
OWASP Top 10
A08:2021 (#8)
Exploit Likelihood
Medium
Related CVEs
100

Description

Object prototype members are modified via attacker-controlled keys, altering application behavior.

How to mitigate

  • Freeze prototypes, use null-prototype maps, validate merge/extend keys.

How attackers exploit CWE-1321

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

T1548Abuse Elevation Control Mechanismprivilege-escalationT1574Hijack Execution Flowstealth · execution

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

Related CVEs

MediumCVE-2025-64718Security vulnerability in js-yaml
MediumCVE-2026-2950Security vulnerability in lodash
CriticalCVE-2022-37601Security vulnerability in loader-utils

References & documentation

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

Weakness facts

IDCWE-1321
AbstractionBase
OWASP Top 10A08:2021 (#8)
Exploit LikelihoodMedium
Related CVEs100

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
  1. 1
    Executionexecution

    Run attacker-chosen code or commands on the system.

    At risk / what's stolen

    Application logic and the host runtime — an attacker can execute arbitrary code or commands.

    How you defend

    Least-privilege runtime, sandboxing, and safe deserialization/parsing.

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

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-26136Security vulnerability in tough-cookie
MediumCVE-2026-33672Security vulnerability in picomatch
CriticalCVE-2026-33228Security vulnerability in flatted
MediumCVE-2023-26136Security vulnerability in tough-cookie
MediumCVE-2026-33672Security vulnerability in picomatch
MediumCVE-2026-33672Security vulnerability in picomatch
HighCVE-2026-42033Security vulnerability in axios
MediumCVE-2026-44490Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
MediumCVE-2025-64718Security vulnerability in js-yaml
HighCVE-2026-42033Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
MediumCVE-2026-44490Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
MediumCVE-2026-33672Security vulnerability in picomatch
CriticalCVE-2026-33228Security vulnerability in flatted
CriticalCVE-2021-3757Security vulnerability in immer
MediumCVE-2026-67314Security vulnerability in axios
MediumCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
HighCVE-2022-46175Security vulnerability in json5
HighCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
HighCVE-2026-44490Security vulnerability in axios
HighCVE-2026-42264Security vulnerability in axios
HighCVE-2026-42033Security vulnerability in axios
HighCVE-2026-44490Security vulnerability in axios
HighCVE-2026-42033Security vulnerability in axios
HighCVE-2026-42264Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
CriticalCVE-2026-33228Security vulnerability in flatted
MediumCVE-2025-13465Security vulnerability in lodash-es
MediumCVE-2026-65913Security vulnerability in dompurify
MediumCVE-2026-65913Security vulnerability in dompurify
HighCVE-2026-30226Security vulnerability in devalue
CriticalCVE-2026-33228Security vulnerability in flatted
MediumCVE-2023-0842Security vulnerability in xml2js
MediumCVE-2025-64718Security vulnerability in js-yaml
MediumCVE-2025-13465Security vulnerability in lodash
CriticalCVE-2026-33228Security vulnerability in flatted
CriticalCVE-2026-33228Security vulnerability in flatted
MediumCVE-2020-7598Security vulnerability in minimist
HighCVE-2020-7774Security vulnerability in y18n
MediumCVE-2020-7598Security vulnerability in minimist
MediumCVE-2020-7608Security vulnerability in yargs-parser
MediumCVE-2020-7608Security vulnerability in yargs-parser
CriticalCVE-2021-44906Security vulnerability in minimist
CriticalCVE-2021-44906Security vulnerability in minimist
HighCVE-2020-7788Security vulnerability in ini
CriticalCVE-2021-3918Security vulnerability in json-schema
MediumCVE-2026-44490Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
MediumCVE-2026-33672Security vulnerability in picomatch
MediumCVE-2020-7598Security vulnerability in minimist
HighCVE-2021-3805Security vulnerability in object-path
CriticalCVE-2026-29063Security vulnerability in immutable
CriticalCVE-2021-44906Security vulnerability in minimist
HighCVE-2026-42033Security vulnerability in axios
HighCVE-2026-42264Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
HighCVE-2026-42033Security vulnerability in axios
MediumCVE-2026-44490Security vulnerability in axios
HighCVE-2026-67316Security vulnerability in axios
MediumCVE-2026-44490Security vulnerability in axios
LowCVE-2026-67319Security vulnerability in axios
HighCVE-2022-46175Security vulnerability in json5
HighCVE-2022-24999Security vulnerability in qs
MediumCVE-2020-7608Security vulnerability in yargs-parser
HighCVE-2022-46175Security vulnerability in json5
CriticalCVE-2022-37601Security vulnerability in loader-utils
MediumCVE-2025-13465Security vulnerability in lodash
MediumCVE-2025-64718Security vulnerability in js-yaml
CriticalCVE-2019-10744Security vulnerability in lodash
CriticalCVE-2021-44906Security vulnerability in minimist
CriticalCVE-2019-10744Security vulnerability in lodash
MediumCVE-2020-7598Security vulnerability in minimist
MediumCVE-2025-13465Security vulnerability in lodash
MediumCVE-2020-7751Security vulnerability in pathval
CriticalCVE-2021-3766Security vulnerability in objection
MediumCVE-2020-7608Security vulnerability in yargs-parser
MediumCVE-2020-7608Security vulnerability in yargs-parser
MediumCVE-2020-7608Security vulnerability in yargs-parser
MediumCVE-2020-7608Security vulnerability in yargs-parser
HighCVE-2020-7774Security vulnerability in y18n
MediumCVE-2023-26136Security vulnerability in tough-cookie
MediumCVE-2023-26136Security vulnerability in tough-cookie
HighCVE-2026-23736Security vulnerability in seroval
MediumCVE-2026-65913Security vulnerability in dompurify
MediumCVE-2026-65913Security vulnerability in dompurify
HighCVE-2022-24999Security vulnerability in qs
HighCVE-2022-24999Security vulnerability in qs
MediumCVE-2026-44292Security vulnerability in protobufjs
HighCVE-2026-44290Security vulnerability in protobufjs