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

the regex failed vulnerability check ? #46

Open
xiuqingli opened this issue Jan 20, 2020 · 1 comment
Open

the regex failed vulnerability check ? #46

xiuqingli opened this issue Jan 20, 2020 · 1 comment

Comments

@xiuqingli
Copy link

I did a vulnerability test of the regex.

  1. it failed in https://www.npmjs.com/package/safe-regex
  2. 'Invalid' in https://www.npmjs.com/package/vuln-regex-detector, I don't know why it's invalid, will follow up.

Should I worry about the vulnerability of the regex used in the package?

Thanks!

@Alan-Liang
Copy link

It's a bit late to reply, but I found that

  1. safe-regex is false positive on this regex because it has nested repetitions while it is actually safe.
  2. vuln-regex-detector reports everything as invalid as the server is down (Error: connect ETIMEDOUT davisjam/vuln-regex-detector#72). Doing real testing by executing the perl script directly reports the regex as safe.

Disclaimer: I'm not a security expert.

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

No branches or pull requests

2 participants