You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
defu is software that allows uers to assign default properties recursively. Prior to version 6.1.5, applications that pass unsanitized user input (e.g. parsed JSON request bodies, database records, or config files from untrusted sources) as the first argument to `defu()` are vulnerable to prototype pollution. A crafted payload containing a `__proto__` key can override intended default values in the merged resul. The internal `_defu` function used `Object.assign({}, defaults)` to copy the defaults object. `Object.assign` invokes the `__proto__` setter, which replaces the resulting object's `[[Prototype]]` with attacker-controlled values. Properties inherited from the polluted prototype then bypass the existing `__proto__` key guard in the `for...in` loop and land in the final result. Version 6.1.5 replaces `Object.assign({}, defaults)` with object spread (`{ ...defaults }`), which uses `[[DefineOwnProperty]]` and does not invoke the `__proto__` setter.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Title: defu de unjs, Description: defu es un software que permite a los usuarios asignar propiedades predeterminadas recursivamente. Antes de la versión 6.1.5, las aplicaciones que pasan entrada de usuario no saneada (p. ej., cuerpos de solicitud JSON analizados, registros de base de datos o archivos de configuración de fuentes no confiables) como el primer argumento a 'defu()' son vulnerables a la contaminación de prototipos. Una carga útil manipulada que contiene una clave '__proto__' puede anular los valores predeterminados previstos en el resultado fusionado. La función interna '_defu' usaba 'Object.assign({}, defaults)' para copiar el objeto de valores predeterminados. 'Object.assign' invoca al setter '__proto__', que reemplaza el '[[Prototype]]' del objeto resultante con valores controlados por el atacante. Las propiedades heredadas del prototipo contaminado luego eluden la protección de clave '__proto__' existente en el bucle 'for...in' y terminan en el resultado final. La versión 6.1.5 reemplaza 'Object.assign({}, defaults)' con la propagación de objetos ('{ ...defaults }'), que usa '[[DefineOwnProperty]]' y no invoca al setter '__proto__'.
New CVE Received from GitHub, Inc.4/06/2026 2:16:44 PM
Action
Type
Old Value
New Value
Added
Description
defu is software that allows uers to assign default properties recursively. Prior to version 6.1.5, applications that pass unsanitized user input (e.g. parsed JSON request bodies, database records, or config files from untrusted sources) as the first argument to `defu()` are vulnerable to prototype pollution. A crafted payload containing a `__proto__` key can override intended default values in the merged resul. The internal `_defu` function used `Object.assign({}, defaults)` to copy the defaults object. `Object.assign` invokes the `__proto__` setter, which replaces the resulting object's `[[Prototype]]` with attacker-controlled values. Properties inherited from the polluted prototype then bypass the existing `__proto__` key guard in the `for...in` loop and land in the final result. Version 6.1.5 replaces `Object.assign({}, defaults)` with object spread (`{ ...defaults }`), which uses `[[DefineOwnProperty]]` and does not invoke the `__proto__` setter.