Skip to content

← Public intelligence

npm package

sveltekit-superforms

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.3npmAmendedPublished

    sveltekit-superforms has Prototype Pollution in parseFormData function of formData.js

    CVE-2025-62381 · GHSA-hwmc-4c8j-xxj7

    Affected
    • npm sveltekit-superforms <= 2.27.3
    Fixed in
    2.27.4· Vendor fix available
    Issue
    sveltekit-superforms v2.27.3 and prior are susceptible to a prototype pollution vulnerability within the parseFormData function of formData.js. An attacker can inject string and array properties into Object.prototype, leading to denial of service, type confusion, and potential remote code execution in downstream applications that rely on polluted objects. Details Superforms is a SvelteKit form library for server and client form validation. Under normal operation, form validation is performed by calling the the superValidate function, with the submitted form data and a form schema as arguments: Within the superValidate function, a call is made to parseRequest in order to parse the user's input. parseRequest then calls into parseFormData, which in turn looks for the presence of superformjson in the form parameters. If superformjson is present, the following snippet is executed: This snippet deserializes JSON input within the superformjson, and then performs a nested assignment…

    Recommended action: Upgrade to 2.27.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →