Live threats

All CVEs / Openapi-generator

CVE-2021-21428Openapi-generator Openapi Generator

High 7.0

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
Weakness (CWE)
CWE-269, CWE-668
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openapi Generator.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
openapi-generatoropenapi_generator< 5.1.0

Official sources

References

Links published by the sources. Open them with care.