# CVE-2021-32012: Denial of Service in SheetJS Pro

> Attackers can cause denial of service via memory consumption by providing a crafted .xlsx document to the SheetJS library.

- **Severity:** Medium 5.5 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 19 Jul 2021
- **Updated:** 3 Aug 2024
- **Also known as:** GHSA-3x9f-74h4-2fqr

## What is CVE-2021-32012?

CVE-2021-32012 is a medium-severity denial of service vulnerability in n/a, published on 19 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

SheetJS and SheetJS Pro through 0.16.9 allows attackers to cause a denial of service (memory consumption) via a crafted .xlsx document that is mishandled when read by xlsx.js (issue 1 of 2).

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2021-32012?

4 open source packages ship an affected version, including org.webjars.npm:xlsx and xlsx. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.webjars.npm:xlsx` | Maven | All versions | 0.17.0 |
| `org.webjars.npm:xlsx` | Maven | All versions | 0.17.0 |
| `xlsx` | npm | All versions | 0.17.0 |
| `xlsx` | npm | All versions | 0.17.0 |

Products: Oracle Rest Data Services, Sheetjs Project Sheetjs, Sheetjs Project Sheetjs Pro.

## How do I fix CVE-2021-32012?

Upgrade org.webjars.npm:xlsx to 0.17.0 or later.

## Is CVE-2021-32012 being exploited?

There is no known exploitation of CVE-2021-32012 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2026-46840](https://insights.sbomify.com/CVE-2026-46840/): Auth bypass in Oracle REST Data Services (critical 10.0)
- [CVE-2026-46775](https://insights.sbomify.com/CVE-2026-46775/): Denial of service in Oracle REST Data Services (critical 9.9)
- [CVE-2026-46839](https://insights.sbomify.com/CVE-2026-46839/): Auth bypass in Oracle REST Data Services (critical 9.9)
- [CVE-2026-35277](https://insights.sbomify.com/CVE-2026-35277/): Missing authorization in Oracle REST Data Services (high 8.1)
- [CVE-2026-35266](https://insights.sbomify.com/CVE-2026-35266/): Cross-site request forgery in Oracle REST Data Services (high 7.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-32012 and fix it if it is affected.

What it is: CVE-2021-32012 is a medium-severity denial of service vulnerability in n/a, published on 19 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2021-32012 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.webjars.npm:xlsx (Maven): affected all versions; fixed in 0.17.0
- org.webjars.npm:xlsx (Maven): affected all versions; fixed in 0.17.0
- xlsx (npm): affected all versions; fixed in 0.17.0
- xlsx (npm): affected all versions; fixed in 0.17.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-32012/ (Markdown: https://insights.sbomify.com/CVE-2021-32012/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-32012
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-32012
- OSV: https://osv.dev/vulnerability/CVE-2021-32012

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-32012/
Summaries are generated and may contain mistakes; the official description above is the record.
