GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: better handling of whitespace by lukekarrys · Pull Request #564 · npm/node-semver

Conversation

@lukekarrys

@lukekarrys lukekarrys commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lukekarrys
lukekarrys requested a review from a team as a code owner June 15, 2023 04:04
@lukekarrys
lukekarrys force-pushed the lk/whitespace branch 3 times, most recently from 0dcb021 to fc08341 Compare June 15, 2023 05:20
@lukekarrys lukekarrys self-assigned this Jun 15, 2023
@lukekarrys
fix: better handling of whitespace
b6db78d
@lukekarrys
lukekarrys force-pushed the lk/whitespace branch from fc08341 to b6db78d Compare June 15, 2023 17:06
wraithgar
wraithgar approved these changes Jun 15, 2023
View reviewed changes
@lukekarrys
lukekarrys merged commit 717534e into main Jun 15, 2023
@lukekarrys
lukekarrys deleted the lk/whitespace branch June 15, 2023 19:21
@github-actions github-actions Bot mentioned this pull request Jun 15, 2023
chore: release 7.5.2 #567
Merged
@jportner

jportner commented Jun 21, 2023

Copy link
Copy Markdown

Snyk reported that this PR fixed a vulnerability in semver 7.5.1: https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795

According to Snyk, it looks like semver 5.7.1 has the same issue. It seems a lot of packages still depend on semver 5.x. Is there any chance of applying this fix in a 5.7.2 release as well?

(I looked but I didn't see a 5.x branch in this repo)

nchevsky, Gudahtt, yukha-dw, SymbioticKilla, tcherel, vvroman, tlakomy, rsioss, joaomoreno, jakejarvis, and 8 more reacted with thumbs up emoji dc185334, w3nl, mykolaGAL, and bray reacted with heart emoji
All reactions
  • 👍 18 reactions
  • ❤️ 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SymbioticKilla

SymbioticKilla commented Jun 23, 2023

Copy link
Copy Markdown

@lukekarrys @wraithgar
It would be awesome to have this fix in 5.x and 6.x branches
Thank you!

bobvandevijver, Blackchickenn, jeremytjl, tcherel, vvroman, wojw5, dehy, fnep, tlakomy, flannanl, and 16 more reacted with thumbs up emoji
All reactions
  • 👍 26 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wraithgar

wraithgar commented Jun 23, 2023

Copy link
Copy Markdown
Contributor

At this time, seeing as how v5/6 is a single 1400+ line file with outdated testing deps and no working CI we do not have plans to backport this.

viceice, ramblingenzyme, CristianDuta, keithjgrant, and MidgardStans reacted with confused emoji
All reactions
  • 😕 5 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dvasilen dvasilen mentioned this pull request Jun 23, 2023
please publish a new NPM package auth0/node-jsonwebtoken#914
Closed
@github-actions github-actions Bot mentioned this pull request Jun 26, 2023
Snyk vulnerability [SNYK-JS-SEMVER-3247795] backstage/backstage#18439
Closed
@joaomoreno

joaomoreno commented Jun 26, 2023

Copy link
Copy Markdown

@wraithgar, while I totally side with you on this, it's much more difficult to bulk upgrade semver to v7 across deep dependency trees of even medium side projects. We have 10+ usages of it just in microsoft/vscode. This is a compliment: semver is very popular and its usage is widespread. We thank you for this library! ❤️

That being said, we like to put our commits where our mouth is. I've backported the fix to v5: https://github.com/npm/node-semver/compare/v5.7.1...joaomoreno:joao/backport-564-to-v5?expand=1. I've also fixed the test suites and added the relevant test cases, all green: https://asciinema.org/a/593286. I hope you can consider this for releasing an eventual 5.7.2 version, given your review. If successful, I would gladly backport the same fix to v6.

I can't quite create a PR, since there's no v5 branch to upstream against. If you'd like to roll this forward, let's create a v5 branch and we'll create a PR from my ref.

kenkku, stocaaro, RobertVillalba, 06000208, naokiy, NullDev, codeams, astegmaier, JuliCardenasG, viceice, and 4 more reacted with thumbs up emoji nchevsky, pcholakov, tlakomy, robineggenkamp-hely, bpasero, tugtugtug, britwilb245, dasa, rafaelmatsunaga, fnep, and 51 more reacted with heart emoji
All reactions
  • 👍 14 reactions
  • ❤️ 61 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Jun 26, 2023
Medium severity - Regular Expression Denial of Service (ReDoS) vulnerability in semver (package.json) jordaniac89/juice-shop#169
Open
@wraithgar wraithgar mentioned this pull request Jun 26, 2023
Is v6 vulnerable?/Can the fix be backported? #576
Closed
1 task done
@ljharb

ljharb commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

That would be amazing; semver v7's dropping of node versions means i'm stuck on v6 for basically ever on dozens of packages.

joshuanapoli, sr-verde, bray, stocaaro, mtripg6666tdr, and JuliCardenasG reacted with thumbs up emoji nchevsky reacted with thumbs down emoji
All reactions
  • 👍 6 reactions
  • 👎 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wraithgar wraithgar mentioned this pull request Jun 26, 2023
[BUG] Back-port to v6 the fix for Regular Expression Denial of Service #577
Closed
1 task done
@trentm trentm mentioned this pull request Jun 26, 2023
Audit failure due to a vulnerability in semver elastic/apm-nodejs-http-client#201
Closed
@kenkku kenkku mentioned this pull request Jun 27, 2023
[BUG] Missing deprecation information for the package in npm #579
Closed
1 task done
@1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP

1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP commented Jun 28, 2023

Copy link
Copy Markdown

The babel team has also stated that they'd fork v6 to fix the issue. babel/babel#15720 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rosswintle rosswintle mentioned this pull request Jun 28, 2023
Update dependencies of @wordpress/scripts to fix semver security issue WordPress/gutenberg#52029
Closed
This was referenced Jun 29, 2023
CVE-2022-25883 @ Npm-semver-5.7.1 westonphillips/CheckmarxOnePOV#128
Open
CVE-2022-25883 @ Npm-semver-7.3.4 westonphillips/CheckmarxOnePOV#129
Open
CVE-2022-25883 @ Npm-semver-6.3.0 westonphillips/CheckmarxOnePOV#130
Open
CVE-2022-25883 @ Npm-semver-7.5.3 westonphillips/CheckmarxOnePOV#131
Open
@NullDev NullDev mentioned this pull request Jul 2, 2023
[SECURITY] semver vulnerable to Regular Expression Denial of Service NullDev/DiscordJS-Template#2
Closed
@octovy-dev octovy-dev Bot mentioned this pull request Sep 6, 2024
[Snyk] Fix for 1 vulnerabilities m-mizutani/boilerplate-cdk-react-app#7
Closed
@Mhmonicox Mhmonicox mentioned this pull request Sep 7, 2024
[Snyk] Upgrade: , , semver, typed-rest-client Mhmonicox/actions-setup-cmake#37
Open
@NOUIY NOUIY mentioned this pull request Sep 7, 2024
[Snyk] Upgrade: , , react, react-dom, semver, , , clsx, , , cross-fetch, file-loader, lunr, next, raw-loader, react-syntax-highlighter, url-loader NOUIY/layer0-docs#478
Open
@YoYBaBy YoYBaBy mentioned this pull request Sep 9, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 YoYBaBy/nodejs.org#282
Open
@m-heyda m-heyda mentioned this pull request Sep 24, 2024
[Snyk] Upgrade semver from 7.5.2 to 7.6.3 m-heyda/hain#35
Open
@phoebeyusnyk phoebeyusnyk mentioned this pull request Sep 29, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 phoebeyusnyk/juice-shop#4
Open
@tahmid198 tahmid198 mentioned this pull request Sep 30, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 tahmid198/juice-shop#4
Open
@AeonArriving AeonArriving mentioned this pull request Sep 30, 2024
[Snyk] Upgrade semver from 7.3.8 to 7.6.3 AeonArriving/audit-ci#2
Open
@InfiniteLove2020 InfiniteLove2020 mentioned this pull request Oct 3, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 InfiniteLove2020/nodejs.org#6
Open
@nerdy-tech-com-gitub nerdy-tech-com-gitub mentioned this pull request Oct 24, 2024
[Snyk] Upgrade semver from 6.3.1 to 7.6.3 nerdy-tech-com-gitub/toolkit#6
Open
@HaLaGu1L HaLaGu1L mentioned this pull request Nov 1, 2024
[Snyk] Upgrade semver from 7.5.2 to 7.6.3 HaLaGu1L/vscode#13
Open
@doperiddle doperiddle mentioned this pull request Nov 10, 2024
[Snyk] Upgrade semver from 7.3.2 to 7.6.3 doperiddle/paystring#6
Merged
@nickvadala-snyk nickvadala-snyk mentioned this pull request Nov 11, 2024
[Snyk] Upgrade semver from 7.3.5 to 7.6.3 nickvadala-snyk/juice-shop#4
Open
This was referenced Jan 28, 2025
fix(deps): update semver from 6.3.0 → 6.3.1 CyberdyneHQ/phaser#13
Open
fix(deps): update remove-files-webpack-plugin from 1.5.0 → 1.5.0 CyberdyneHQ/phaser#15
Open
fix(deps): update remove-files-webpack-plugin from 1.5.0 → 1.5.0 CyberdyneHQ/phaser#17
Open
fix(deps): update remove-files-webpack-plugin from 1.5.0 → 1.5.0 CyberdyneHQ/phaser#16
Open
fix(deps): update remove-files-webpack-plugin from 1.5.0 → 1.5.0 CyberdyneHQ/phaser#18
Open
This was referenced Feb 10, 2025
fix(deps): update npm/semver from 5.7.1 → 5.7.2 NewProfoundOrigin/solid-succotash#3
Open
fix(deps): update npm/remove-files-webpack-plugin from 1.5.0 → 1.5.0 NewProfoundOrigin/phaser#5
Open
fix(deps): update npm/semver from 6.3.0 → 6.3.1 NewProfoundOrigin/phaser#6
Open
fix(deps): update npm/remove-files-webpack-plugin from 1.5.0 → 1.5.0 TransientOrg/phaser#1
Open
@pratheeshrussell-qb pratheeshrussell-qb mentioned this pull request Feb 20, 2025
Test pratheeshrussell-qb/docker_vuln_scan#8
Closed
@pratheeshrussell-qb pratheeshrussell-qb mentioned this pull request Apr 7, 2025
Test pratheeshrussell-qb/docker_vuln_scan#9
Closed
@github-actions github-actions Bot mentioned this pull request Apr 7, 2025
Test2 pratheeshrussell-qb/docker_vuln_scan#10
Closed
This was referenced Apr 25, 2025
fix(deps): update npm/semver from 5.7.1 → 5.7.2 QuackatronHQ/posthog#11
Open
fix(deps): update npm/semver from 5.7.1 → 5.7.2 QuackatronHQ/posthog#12
Open
@coderabbitai coderabbitai Bot mentioned this pull request Mar 26, 2026
Stick picomatch version & remove unwanted deps thunder-id/thunderid#1958
Merged
2 of 12 tasks
@Susenthiran28 Susenthiran28 mentioned this pull request Apr 16, 2026
[Security] HIGH: GHSA-c2qf-rxjj-qqgw in [email protected] Susenthiran28/juice-shop#19
Closed
Copilot AI mentioned this pull request Oct 12, 2026
Resolve semver ReDoS vulnerability navikt/aap-intern-sysdok#264
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@AliceSof AliceSof AliceSof left review comments
@wraithgar wraithgar wraithgar approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lukekarrys lukekarrys

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@lukekarrys @jportner @SymbioticKilla @wraithgar @joaomoreno @ljharb @1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP @nicolo-ribaudo @simnalamburt @AliceSof
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.