نسخههای متأثر
npmdevalue
- نسخههای متأثر
- >= 4.0.0, < 5.6.4
- نسخهٔ اصلاحشده
- 5.6.4
شرح آسیبپذیری
In some circumstances, devalue.parse and devalue.unflatten could emit objects with __proto__ own properties. This in and of itself is not a security vulnerability (and is possible with, for example, JSON.parse as well), but it can result in prototype injection if downstream code handles it incorrectly:
const result = devalue.parse(/* input creating an object with a __proto__ property */);
const target = {};
Object.assign(target, result); // target's prototype is now polluted
پیوندها
- https://github.com/advisories/GHSA-mwv9-gp5h-frr4
- https://github.com/sveltejs/devalue
- https://github.com/sveltejs/devalue/commit/87c1f3ce3759765a061cfe34843ecc4b0711ba8d
- https://github.com/sveltejs/devalue/releases/tag/v5.6.4
- https://github.com/sveltejs/devalue/security/advisories/GHSA-mwv9-gp5h-frr4
گزارشدهندگان
- elliott-with-the-longest-name-on-github
- KarimPwnz
- wim-vercel
- mattiasljungstrom
- Wenxin-Jiang
- massif-01

