Skip to content

Conversation

@cb-karthikp
Copy link
Contributor

  • Event handler and types for webhook events.

@snyk-io
Copy link

snyk-io bot commented Nov 24, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.


const credentials = Buffer.from(parts[1], 'base64').toString().split(':');
if (credentials.length !== 2) {
throw new Error("Invalid credentials");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Password with colon rejected in Basic Auth

The Basic Auth parser splits credentials on all colons instead of only the first one. Per RFC 7617, passwords can contain colons, but split(':') creates multiple array elements when this happens. The subsequent check credentials.length !== 2 then incorrectly rejects valid credentials where the password contains a colon character.

Fix in Cursor Fix in Web

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.

2 participants