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

chore: bump version of minimatch due to security issue PRISMA-2022-0039 #76

Merged
merged 2 commits into from
May 6, 2022
Merged

chore: bump version of minimatch due to security issue PRISMA-2022-0039 #76

merged 2 commits into from
May 6, 2022

Conversation

opravil-jan
Copy link
Contributor

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x ] Other, please explain: fixing security issue by bump package version

What changes did you make? (Give an overview)

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added bug Something isn't working triage labels Apr 11, 2022
@nzakas
Copy link
Member

nzakas commented Apr 12, 2022

Can you please link the security bulletin so we can review?

@opravil-jan
Copy link
Contributor Author

opravil-jan commented Apr 13, 2022

Hi,
here is print screen from out vulnerability management Prisma with link to code

Screenshot from 2022-04-13 09-16-06

Link to the repo where it is describe and fix: isaacs/minimatch@a8763f4
Link to bounty where the vulnerability was discussed: https://huntr.dev/bounties/e4e1393c-d590-4492-9f43-8be3f3321629/

@nzakas
Copy link
Member

nzakas commented Apr 14, 2022

Can you link to the CVE directly? The code doesn’t tell us anything.

@opravil-jan
Copy link
Contributor Author

opravil-jan commented Apr 14, 2022

Vulnerability management: https://www.paloaltonetworks.com/prisma/cloud

Link to the repo where it is describe and fix: isaacs/minimatch@a8763f4
Link to bounty where the vulnerability was discussed: https://huntr.dev/bounties/e4e1393c-d590-4492-9f43-8be3f3321629/

@nzakas
Copy link
Member

nzakas commented Apr 15, 2022

Thanks. We need to coordinate this with changes in the main repo.

Note that the vulnerability does not affect ESLint users because it’s not a server application accepting unknown inputs.

@snitin315
Copy link
Contributor

I tried this PR against the latest main branch of eslint, all tests seem to pass - snitin315/eslint#1

@nzakas
Copy link
Member

nzakas commented Apr 20, 2022

Thanks! Can you try creating a draft pull request to the main repo with your work so the CI will trigger? We had failures in the main repo on the PR that makes this same upgrade directly in the eslint repo.

@mdjermanovic
Copy link
Member

While the following usage apparently isn't covered by the test cases, and perhaps isn't something we intended to support, I've just tried it with the current ESLint v8.14.0 and it works on Windows (I'm getting no-undef errors in foo\bar.js file):

module.exports = {
    overrides: [{
        files: ["foo\\bar.js"],
        rules: {
            "no-undef": "error"
        }
    }]
};

However, when I replace minimatch v3 with minimatch v5, it doesn't work anymore.

This seems like a risky change, so maybe we could leave it for the next major version, and in the meantime just update the dependency requirement to "minimatch": "^3.1.2" if that will fix the security issue?

@nzakas
Copy link
Member

nzakas commented May 3, 2022

This seems like a risky change, so maybe we could leave it for the next major version, and in the meantime just update the dependency requirement to "minimatch": "^3.1.2" if that will fix the security issue?

Agree, though I’d add let’s wait for the new config system before risking a major upgrade.

@mdjermanovic
Copy link
Member

It seems we agree to postpone using minimatch v5.

@opravil-jan can you update this PR and eslint/eslint#15774 to minimatch v3.1.2?

@opravil-jan
Copy link
Contributor Author

Hi, for me it is okay. Thank you guys

package.json Outdated Show resolved Hide resolved
@mdjermanovic mdjermanovic changed the title fix: bump version of minimatch due to security issue PRISMA-2022-0039 chore: bump version of minimatch due to security issue PRISMA-2022-0039 May 6, 2022
@mdjermanovic mdjermanovic added accepted and removed bug Something isn't working triage labels May 6, 2022
@mdjermanovic mdjermanovic merged commit baf145f into eslint:main May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants