Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snyk failed from openapi pom.xml #18286

Open
Orapan-LP opened this issue Apr 4, 2024 · 2 comments
Open

Snyk failed from openapi pom.xml #18286

Orapan-LP opened this issue Apr 4, 2024 · 2 comments

Comments

@Orapan-LP
Copy link

Snyk failed from openapi pom.xml

Description

Got Snyk Failed when building a project using openapi and failure details are as follows:

Issues to fix by upgrading:
  Upgrade org.springframework:[email protected] to org.springframework:[email protected] to fix
  ✗ Open Redirect (new) [High Severity][https://security.snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-6444790] in org.springframework:[email protected]
    introduced by org.springframework:[email protected]
Organization:      xxx
Package manager:   maven
Target file:       target/generated-sources/openapi/pom.xml
Project name:      org.openapitools:openapi-java-client
Open source:       no
Project path:      /var/lib/buildkite-agent/builds/bk-arts-dev-i-07f36b9a746fc761c/littlepay/service-dot-passes
Licenses:          enabled
openapi-generator version

org.openapitools
openapi-generator-maven-plugin
6.6.0

I tried upgrading to one of your 7.x but still got the same failure.

OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

Snyk suggested to upgrade org.springframework:[email protected] to org.springframework:[email protected]

@wing328
Copy link
Member

wing328 commented Apr 5, 2024

can you try the latest snapshot version (mentioned in project's readme)?

i did update these to newer version recently: #18266

@Orapan-LP
Copy link
Author

Orapan-LP commented Apr 8, 2024

When I specified the version you mentioned in pom.xml

<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.5.0-SNAPSHOT</version>

I got [ERROR] Plugin org.openapitools:openapi-generator-maven-plugin:7.5.0-SNAPSHOT or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.openapitools:openapi-generator-maven-plugin:jar:7.5.0-SNAPSHOT (absent): org.openapitools:openapi-generator-maven-plugin:jar:7.5.0-SNAPSHOT was not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants