GitHub Advisoryadvisory · npm
GHSA-866w-xmhq-wj7x SvelteKit: Prototype pollution in file input deletion path in remote-function forms
MEDIUM
Official page ↗
- Ecosystem
- npm
- Packages
- @sveltejs/kit
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-1321
- Reviewed
- 2026-07-24
Affected packages
• npm @sveltejs/kit: < 2.69.1 → fixed in 2.69.1
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.
Related
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://github.com/sveltejs/kit/security/advisories/GHSA-866w-xmhq-wj7x web
- https://github.com/sveltejs/kit/pull/16218 web
- https://github.com/sveltejs/kit/commit/df32f6fe86cdd0b68b650e3e4631e5896453dcd3 web
- https://github.com/sveltejs/kit package
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] web
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] web