CVE-2025-62381
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-62381 affects sveltekit-superforms, a SvelteKit form library for server and client form validation. The vulnerability was discovered and disclosed on October 15, 2025, affecting versions 2.27.3 and prior. The issue is a prototype pollution vulnerability within the parseFormData function of formData.js (GitHub Advisory).

Technical details

The vulnerability exists in the parseFormData function where user-controlled input can be used to modify Object.prototype attributes. When processing form data with superform_json parameter, the function deserializes JSON input and performs nested assignments using values from form parameters beginning with superformfile and _superformfiles_. Since both the target property and value of the assignment are controlled by user input, this enables prototype pollution. The vulnerability has been assigned a CVSS v4.0 base score of 8.3 (High) with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L (GitHub Advisory).

Impact

The vulnerability allows attackers to inject string and array properties into Object.prototype, which can lead to denial of service, type confusion, and potential remote code execution in downstream applications that rely on polluted objects. The impact is particularly severe when combined with popular libraries like nodemailer that may contain exploitable gadgets (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 2.27.4 of sveltekit-superforms. Users are advised to upgrade to this patched version to mitigate the risk (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62410CRITICAL9.4
  • JavaScriptJavaScript
  • happy-dom
NoYesOct 15, 2025
CVE-2025-62381HIGH8.3
  • JavaScriptJavaScript
  • sveltekit-superforms
NoYesOct 15, 2025
CVE-2025-62374MEDIUM6.4
  • JavaScriptJavaScript
  • parse
NoYesOct 14, 2025
CVE-2025-62378MEDIUM6.1
  • JavaScriptJavaScript
  • commandkit
NoYesOct 15, 2025
CVE-2025-62380LOW2.9
  • JavaScriptJavaScript
  • mailgen
NoYesOct 15, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management