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

[Security] Bump fast-xml-parser require from ^4.1.3 to ^4.2.4 #36

Closed
wants to merge 1 commit into from
Closed

[Security] Bump fast-xml-parser require from ^4.1.3 to ^4.2.4 #36

wants to merge 1 commit into from

Conversation

larouxn
Copy link

@larouxn larouxn commented Jun 7, 2023

Apparently fast-xml-parser has a security vulnerability (GHSA-6w63-h3fj-q4vw) below version 4.2.4. Thus, I'm proposing we bump the minimum required version from 4.1.3 to 4.2.4.

@larouxn
Copy link
Author

larouxn commented Jun 7, 2023

Hmm, getting some seemingly comment linting related error in npm test.

TypeError: Cannot read property 'getAllComments' of undefined
Occurred while linting /home/runner/work/is-svg/is-svg/index.js:1
Rule: "unicorn/expiring-todo-comments"
    at Object.Program (/home/runner/work/is-svg/is-svg/node_modules/eslint/lib/rules/no-warning-comments.js:1[9](https://github.com/sindresorhus/is-svg/actions/runs/5195611012/jobs/9368506902?pr=36#step:5:10)3:45)

https://github.com/sindresorhus/is-svg/actions/runs/5195611012/jobs/9368506842?pr=36

Screenshot 2023-06-07 at 12 47 23

@larouxn
Copy link
Author

larouxn commented Jun 7, 2023

Ah, looks like the issue is with an outdated version of the eslint-plugin-unicorn plugin. With an older version of that plug plus xo plus eslint 8.40.0, linting blows up.

Opened up PRs on xo to bump eslint-plugin-unicorn.

@larouxn
Copy link
Author

larouxn commented Jun 12, 2023

Apparently one can bump fast-xml-parser to 4.2.4 even with the ^4.1.3 requirement. Wasn't aware the ^ allows patch and minor version updates. Neat 👍

@larouxn larouxn closed this Jun 12, 2023
@larouxn larouxn deleted the security_bump_fast_xml_parser branch June 12, 2023 21:27
@larouxn
Copy link
Author

larouxn commented Jun 12, 2023

Closed this, though I do think an explicit requirement of the secure version i.e. ^4.2.4 would be an improvement.

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

Successfully merging this pull request may close these issues.

None yet

1 participant