What is the Windows Scripting Engine?
The Windows Scripting Engine encompasses the legacy JScript and VBScript interpreters built into Windows — jscript.dll, jscript9.dll (JScript9), and vbscript.dll. These engines are used to execute scripts embedded in web pages (via Internet Explorer compatibility modes in Edge), Office documents (macros), Windows Script Host (.vbs, .js files), and via the SCRIPT object model. Despite Microsoft's ongoing deprecation of legacy scripting engines, they remain active on all Windows versions and are a persistent source of exploitable vulnerabilities.
Overview
CVE-2025-30397 is a type confusion vulnerability (CWE-843) in the Windows Scripting Engine that allows an unauthenticated remote attacker to achieve code execution by tricking a user into visiting a specially crafted URL. The High attack complexity (AC:H) reflects that the attacker must engineer the victim to access a specific URL — typically via phishing, malvertising, or a compromised website. Disclosed as a zero-day in the May 2025 Patch Tuesday, it was one of five simultaneously disclosed Windows zero-days that day.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| Windows 10 / 11 (all supported) | Before May 2025 cumulative update | May 2025 cumulative update |
| Windows Server 2016–2025 | Before May 2025 cumulative update | May 2025 cumulative update |
| Internet Explorer 11 (legacy) | Before May 2025 IE update | May 2025 IE update |
Technical Details
The type confusion vulnerability (CWE-843) occurs in the Windows Scripting Engine when processing JavaScript or VBScript in response to a specially crafted URL. A type confusion bug arises when the engine incorrectly assumes the type of an object — treating memory containing one data type as if it were another. An attacker crafts script that manipulates the engine's internal object type system, creating a type confusion that leads to memory corruption, from which arbitrary read/write primitives and ultimately code execution are achievable.
The Network attack vector (AV:N) reflects that the attack is delivered via a web URL — the victim visits the URL in Internet Explorer compatibility mode in Edge, or in another application that embeds or invokes the scripting engine. The High complexity (AC:H) reflects the social engineering or drive-by requirements: the attacker cannot force the victim to visit the URL.
Exploitation delivery mechanisms:
- Phishing email with a malicious link opened in Edge's IE mode
- Crafted Office document containing an embedded script or iframe
- Malicious advertisement or watering hole redirect
- Windows Script Host
.jsor.vbsfile sent as email attachment
Discovery
Microsoft Threat Intelligence identified active exploitation before May 2025 Patch Tuesday. The specific reporter was not publicly disclosed.
Exploitation Context
Confirmed zero-day exploitation before May 13, 2025. Type confusion vulnerabilities in the Windows Scripting Engine have historically been favored by nation-state actors (North Korean, Chinese, and Russian threat groups) for targeted attacks via spear-phishing campaigns where victims are directed to attacker-controlled URLs. The AC:H score limits the exploitation to targeted scenarios rather than mass exploitation.
Remediation
- Apply the May 2025 cumulative update for your Windows version. The CISA deadline was June 3, 2025.
- Disable Internet Explorer compatibility mode in Edge if not operationally required — the legacy scripting engine is most commonly reached through IE mode.
- Block
.hta,.js, and.vbsfile attachments at the email gateway — these invoke the Windows Scripting Host and the vulnerable scripting engine. - Configure Windows Script Host restrictions via Group Policy (
Windows Components → Windows Script Host) to prevent unintended script execution. - Enable Attack Surface Reduction (ASR) rules that block JavaScript/VBScript from downloading and executing content from the internet.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2025-30397 |
| Vendor / Product | Microsoft — Windows |
| NVD Published | 2025-05-13 |
| NVD Last Modified | 2025-10-27 |
| CVSS 3.1 Score | 7.5 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-843 find similar ↗ |
| CISA KEV Added | 2025-05-13 |
| CISA KEV Deadline | 2025-06-03 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2025-05-13 | Patched in May 2025 Patch Tuesday; CISA adds to KEV (zero-day exploited before patch) |
| 2025-06-03 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Microsoft Security Response Center — CVE-2025-30397 | Vendor Advisory |
| NVD — CVE-2025-30397 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |