CVE-2020-14000Mit Scratch-vm
Critical 9.8 No auth needed
Follow: this CVE · Mit · Mit Scratch-vm We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Jul 16, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
MIT Lifelong Kindergarten Scratch scratch-vm before 0.2.0-prerelease.20200714185213 loads extension URLs from untrusted project.json files with certain _ characters, resulting in remote code execution because the URL's content is treated as a script and is executed as a worker. The responsible code is getExtensionIdForOpcode in serialization/sb3.js. The use of _ is incompatible with a protection mechanism in older versions, in which URLs were split and consequently deserialization attacks were prevented. NOTE: the scratch.mit.edu hosted service is not affected because of the lack of worker scripts.
What to do
- Apply the vendor's security update for Scratch-vm.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | scratch-vm |
< 0.2.0-prerelease.20200714185213 |
0.2.0-prerelease.20200714185213 |
npm install scratch-vm@0.2.0-prerelease.20200714185213 |
Per OSV / GitHub Advisories (GHSA-vc9j-fhvv-8vrf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mit | scratch-vm | < 0.2.0-prerelease.20200714185213 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- scratch.mit.edu Vendor Advisory