Skip to content

fix: prevent prototype pollution when deleting file inputs - #16218

Merged
dummdidumm merged 1 commit into
mainfrom
remote-form-input-prototype-pollution
Jul 2, 2026
Merged

fix: prevent prototype pollution when deleting file inputs#16218
dummdidumm merged 1 commit into
mainfrom
remote-form-input-prototype-pollution

Conversation

@dummdidumm

Copy link
Copy Markdown
Member

If a file input of a remote form is deleted, and the path to that file contains things like __proto__ you can do prototype pollution (you can e.g. delete methods from object prototypes).

This fixes that by reusing the same mechanisms we already have in place elsewhere.

Big big big edge case + remote functions are experimental, hence no SEV.

If a file input of a remote form is deleted, and the path to that file contains things like `__proto__` you can do prototype pollution (you can e.g. delete methods from object prototypes).

This fixes that by reusing the same mechanisms we already have in place elsewhere.

Big big big edge case + remote functions are experimental, hence no SEV.
@pkg-svelte-dev

pkg-svelte-dev Bot commented Jul 2, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 42bf300:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/42bf3007981dcf240d3c2505779d1efd2fcb2440

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16218

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 42bf300

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@dummdidumm
dummdidumm merged commit df32f6f into main Jul 2, 2026
26 of 27 checks passed
@dummdidumm
dummdidumm deleted the remote-form-input-prototype-pollution branch July 2, 2026 21:36
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
dummdidumm pushed a commit that referenced this pull request Jul 2, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @sveltejs/kit@2.69.1

### Patch Changes


- fix: prevent prototype pollution when deleting file inputs
([#16218](#16218))


- fix: prevent unhandled promise rejection
([#16219](#16219))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants