org.openapitools:openapi-generator-online@3.3.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.openapitools:openapi-generator-online package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Directory Traversal

org.openapitools:openapi-generator-online is an a Spring Boot Server application which hosts a client/server generator API.

Affected versions of this package are vulnerable to Directory Traversal through the outputFolder option. An attacker can read and delete files and folders from an arbitrary, writable directory by setting the output folder when submitting the request.

How to fix Directory Traversal?

Upgrade org.openapitools:openapi-generator-online to version 7.6.0 or higher.

[,7.6.0)
  • H
Race Condition

org.openapitools:openapi-generator-online is an a Spring Boot Server application which hosts a client/server generator API.

Affected versions of this package are vulnerable to Race Condition. The contents of the outputFolder can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled. openapi-generator-online creates insecure temporary folders with the 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. This is due to a race condition between the deletion of the randomly generated temporary file and the creation of the temporary directory.

How to fix Race Condition?

Upgrade org.openapitools:openapi-generator-online to version 5.1.0 or higher.

[,5.1.0)