CVE-2021-21428Openapi-generator Openapi Generator
High 7.0
Follow: this CVE · Openapi-generator · Openapi-generator Openapi Generator We alert you by email or Slack (account required).
- Priority
- 42
- CVSS 3.1
- 7.0
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 31
- Auth required
- Yes
- Published
- May 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
Openapi generator is a java tool which allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. openapi-generator-online creates insecure temporary folders with File.createTempFile during the code generation process. The insecure temporary folders store the auto-generated files which can be read and appended to by any users on the system. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.
What to do
- Apply the vendor's security update for Openapi Generator.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.openapitools:openapi-generator-online |
< 5.1.0 |
5.1.0 |
— |
Per OSV / GitHub Advisories (GHSA-23x4-m842-fmwf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openapi-generator | openapi_generator | < 5.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory