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

Yarn Transitive Dependency Overrides Not Considered #769

Open
TTTriplicate opened this issue Oct 16, 2024 · 0 comments
Open

Yarn Transitive Dependency Overrides Not Considered #769

TTTriplicate opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TTTriplicate
Copy link

Describe the bug

In a yarn based project, we have several transitive dependencies overridden in the resolutions section of our package.json. Only the version of those tranitives specified in that block are installed. Frogbot still reports vulnerabilities based on the versions in the yarn.lock file.

This might be more feature request than bug.

Current behavior

We have a project that uses typed-scss-modules:2.0.1, which has a dependency of postcss:6.0.1. We also have a resolution set for transitive dependencies to use postcss:8.4.31.

When we lock dependencies with yarn, the dependencies still show the versions according to that dependencie's own packaging. However when we install with yarn, it will install the version specified in the resolutions section of the package.json.

Frogbot reports the vulnerabilities in postcss:6.0.1, despite the fact that we have a manual override and are not using that version.

Reproduction steps

Given a package.json:

{
  ...
  "devDependencies": {
    "typed-scss-modules": "~2.0.1",
    ...
  },
  "resolutions": {
    "postcss": "8.4.31",
    ....
  }
}

Frogbot will identify a vulnerable transitive dependency of postcss:6.0.1, despite the overriding resolutions entry.

Expected behavior

I would have expected Frogbot to take overrides into account.

JFrog Frogbot version

2.22.0

Package manager info

yarn, package.json, yarn.lock

Git provider

GitHub

JFrog Frogbot configuration yaml file

No response

Operating system type and version

Linux, ubuntu-latest on GitHub Actions

JFrog Xray version

3.105.4

@TTTriplicate TTTriplicate added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant