sveltejs/kit · Security
SvelteKit: Prototype pollution in file input deletion path in remote-function forms
- GHSA ID
- GHSA-866w-xmhq-wj7x
- Severity
- medium
- Published
- Updated
- CVSS
- 4.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- CVSS v3
- 4.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Description
If you use remote form functions, have an input field of type file, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype.
CWEs
- CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- https://github.com/sveltejs/kit/security/advisories/GHSA-866w-xmhq-wj7x ↗
- https://github.com/sveltejs/kit/pull/16218 ↗
- https://github.com/sveltejs/kit/commit/df32f6fe86cdd0b68b650e3e4631e5896453dcd3 ↗
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] ↗
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] ↗
- https://github.com/advisories/GHSA-866w-xmhq-wj7x ↗