{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.1.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e023eaa8218da996140148161978953cc698d014"
            }
          ],
          "repo": "https://github.com/openapitools/openapi-generator",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.",
  "id": "CVE-2021-21429",
  "modified": "2026-03-13T21:48:18.440464177Z",
  "published": "2021-04-27T20:15:08.763Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/OpenAPITools/openapi-generator/pull/8795"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-867q-77cc-98mv"
    }
  ],
  "related": [
    "GHSA-867q-77cc-98mv"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}