Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2020-8158 — This is a proof-of-concept demonstrating CVE-2020-8158, a critical prototype pollution vulnerability in TypeORM versions < 0.2.25. | Kitploit
Tools/GitHubGitHub/open-flaw/cve-2020-8158
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & Education
GitHubopen-flaw/cve-2020-8158

CVE-2020-8158

This is a proof-of-concept demonstrating CVE-2020-8158, a critical prototype pollution vulnerability in TypeORM versions < 0.2.25.

View Repository
3811 months agoNot yet reviewed
Share

CVE-2020-8158: TypeORM Prototype Pollution Vulnerability

Overview

This is a proof-of-concept demonstrating CVE-2020-8158, a critical prototype pollution vulnerability in TypeORM versions < 0.2.25.

Vulnerability Details

  • CVE ID: CVE-2020-8158
  • CVSS Score: 9.8 (CRITICAL)
  • Affected Package: TypeORM < 0.2.25
  • Vulnerability Type: Prototype Pollution (CWE-1321)
  • HackerOne Report: https://hackerone.com/reports/869574

Impact

Attackers can:

  1. Add or modify Object prototype properties
  2. Trigger denial of service
  3. Inject SQL payloads
  4. Bypass authentication/authorization
  5. Execute arbitrary code

Root Cause

The vulnerability exists in TypeORM's handling of object deserialization when processing database query results. The library improperly merges user-controlled data into objects without sanitizing prototype-polluting keys like __proto__, constructor, and prototype.

Affected Code Path

The issue is in the entity hydration/deserialization process where TypeORM recursively assigns properties from raw query results to entity objects without proper validation.

Files in This PoC

  • vulnerable-app.ts - Vulnerable TypeORM application (version < 0.2.25)
  • exploit.ts - Proof-of-concept exploit
  • patched-app.ts - Patched version (version >= 0.2.25)
  • package.json - Dependencies

Setup Instructions

See SETUP.md for detailed setup and exploitation instructions.

Mitigation

  • Upgrade TypeORM to version 0.2.25 or later
  • Validate and sanitize all user inputs
  • Use input validation libraries to block prototype pollution attempts
  • Consider using Object.freeze() on critical objects

References

  • Official TypeORM Security Advisory
  • OWASP Prototype Pollution
  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →