-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix: backport regex change from 8.0.1 #20
Conversation
This would be nice to get backported to version 7 of For example,
And I'm sure there's more packages like this. |
We are facing the same issue with
|
Friendly ping, @nlf You released the previous updates for ssri. Could you look at this backport? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need this fix
I need write access |
I'm just learning this platform so I'll look for other instances of this software on my local directories--is that part of the pipeline so to say? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@nlf @darcyclarke @wraithgar @isaacs would it be possible to get this merged and released? We've coming up to this being open for a month now with the community being very vocal on this being annoying and showing a clear desire for the patch, which was promptly landed for the v6 & v8 lines in a desire to make it easy for devs to update which this version would also do. If there is anything I can do on my end to help speed up getting this landed please let me know, but so far I've not had any review from the npm team :( |
Am I holding up this project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve changes
@@ -8,7 +8,7 @@ const SPEC_ALGORITHMS = ['sha256', 'sha384', 'sha512'] | |||
|
|||
const BASE64_REGEX = /^[a-z0-9+/]+(?:=?=?)$/i | |||
const SRI_REGEX = /^([^-]+)-([^?]+)([?\S*]*)$/ | |||
const STRICT_SRI_REGEX = /^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/ | |||
const STRICT_SRI_REGEX = /^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/ | |||
const VCHAR_REGEX = /^[\x21-\x7E]+$/ | |||
|
|||
const SsriOpts = figgyPudding({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve remove const SsriOpts = figgyPudding({
@@ -8,7 +8,7 @@ const SPEC_ALGORITHMS = ['sha256', 'sha384', 'sha512'] | |||
|
|||
const BASE64_REGEX = /^[a-z0-9+/]+(?:=?=?)$/i | |||
const SRI_REGEX = /^([^-]+)-([^?]+)([?\S*]*)$/ | |||
const STRICT_SRI_REGEX = /^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve remove constricting change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for doing this work! sorry for the delay, but i'm about to publish it right now
this was merged via commit 809c84d and published as ssri@7.1.1 |
@nlf I'd say no problem but... it was a long wait 😅 Are you able to fast-track getting the npm advisory updated to include |
Backport of #17 so it's easier for people to patch.
Once/if this is merged and released, the advisory will need to be updated to reflect the new vulnerability/fixed range to allow > 7.0.2
Relates to #19.
References