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

Fix CVE-2017-16100: Abandon validation using an unsafe regex pattern in favor of tokenizing and applying a linear pattern #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AMoo-Miki
Copy link

@AMoo-Miki AMoo-Miki commented Aug 22, 2024

This change abandons the use of an unsafe regex pattern for validating hostnames in favor of tokenizing and applying a linear pattern.

Fixes #5

#9 was not a suitable fix as it introduced a binary dep that complicated its adoption for us and perhaps many others.

…in favor of tokenizing and applying a linear pattern
@AMoo-Miki
Copy link
Author

I am not sure if this package is abandoned or not. Assuming the worst, I have published the fix in a package on npm: https://www.npmjs.com/package/@amoo-miki/dns-sync

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.

Vulnerable Regular Expression
1 participant