Weaknesses of type CWE-1321

439 results

Poluição de Protótipo

É a capacidade de um atacante modificar o protótipo de objetos JavaScript (ou estruturas similares em outras linguagens), afetando todas as instâncias daquela classe. Isso ocorre quando o código não valida ou sanitiza chaves de entrada antes de atribuir propriedades a objetos, permitindo acesso a `__proto__`, `constructor.prototype` ou `prototype`. O risco é grave: dados sensíveis podem ser injetados globalmente, lógica de autenticação contornada, ou até código executado.

Example

Um servidor Node.js recebe um objeto JSON `{"name": "João", "__proto__": {"isAdmin": true}}` e o mescla ingenuamente em um objeto de usuário via `Object.assign(usuario, entrada)`. De repente, todos os novos objetos criados herdam `isAdmin: true`, elevando privilégios sem qualquer validação real.

How to mitigate

Nunca confie em chaves de entrada: valide e bloqueie explicitamente chaves perigosas como `__proto__`, `constructor`, `prototype` antes de atribuir. Use `Object.create(null)` para criar objetos sem protótipo herdado, ou bibliotecas seguras como `lodash.merge` com configurações defensivas. Em APIs REST, considere esquemas estritos (JSON Schema) que rejeitam propriedades inesperadas.

CVE-2026-71437MEDIUMMermaid Architecture diagrams are vulnerable to prototype pollutionEPSS 0.5%CVE-2026-73562MEDIUMMongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)EPSS 0.5%CVE-2025-13158CRITICALapidoc-core - prototype pollution in api_group.js, api_param_title.js, api_use.js, and api_permission.js workerEPSS 0.5%CVE-2026-55091HIGHflat-to-nested: Prototype pollution in flat-to-nested convert() via __proto__ parent/id keyEPSS 0.5%CVE-2026-101909HIGHAxios: Prototype Pollution Gadget in axios toFormData OptionsEPSS 0.5%CVE-2026-104848CRITICALTinypool: Prototype Pollution gadget in worker options leads to Remote Code ExecutionEPSS 0.5%CVE-2024-39003HIGHamoyjs amoy common v1.0.10 was discovered to contain a prototype pollution via the function setValue. This vulnerability allows attackers toEPSS 0.5%CVE-2026-48714CRITICALi18next-http-middleware missingKeyHandler does not reject keys whose segments contain prototype-polluting namesEPSS 0.5%CVE-2026-48713CRITICALi18next-fs-backend: Prototype pollution via crafted missing-key stringEPSS 0.5%CVE-2026-92779HIGHBuilder.io Gen2 SDKs through 5.2.11 Prototype Pollution via BindingsEPSS 0.5%CVE-2024-57077CRITICALThe latest version of utils-extend (1.0.8) is vulnerable to Prototype Pollution through the entry function(s) lib.extend. An attacker can suEPSS 0.5%CVE-2026-101904MEDIUMAxios: Header Injection via Inherited headers After Minimal InterceptorEPSS 0.5%CVE-2024-34273MEDIUMnjwt up to v0.4.0 was discovered to contain a prototype pollution in the Parser.prototype.parse method.EPSS 0.5%CVE-2026-27212CRITICALSwiper has a Prototype Pollution VulnerabilityEPSS 0.5%CVE-2025-57354MEDIUMA vulnerability exists in the 'counterpart' library for Node.js and the browser due to insufficient sanitization of user-controlled input inEPSS 0.5%CVE-2026-104849CRITICALTinypool: Prototype Pollution Gadget to RCE in run() optionsEPSS 0.5%CVE-2024-57066HIGHA prototype pollution in the lib.deep function of @ndhoule/defaults v2.0.1 allows attackers to cause a Denial of Service (DoS) via supplyingEPSS 0.5%CVE-2026-55388HIGHpiscina: Prototype Pollution Gadget → RCE via inherited options.filenameEPSS 0.5%CVE-2023-30857LOW@aedart/support possibly vulnerable to prototype pollution in metadata record, when using meta decoratorEPSS 0.5%CVE-2026-66922MEDIUMPivotick Prototype-Key Collision in Tree Layout and Cycle Detection Allows Graph Manipulation and Denial of ServiceEPSS 0.5%