NPM IP package incorrectly identifies some private IP addresses as public [MODERATE] #170
Labels
No labels
blocked
duplicate
needs criteria
needs estimate
needs tests
question
requires documentation
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
epic
type
spike
type
story
type
subtask
won't fix
No project
No assignees
1 participant
Notifications
Total time spent: 9 minutes 3 seconds
Due date
Vylpes
9 minutes 3 seconds
No due date set.
Dependencies
No dependencies set.
Reference: External/card-drop#170
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Package: ip (npm)
Affected versions: = 2.0.0
Patched version: 2.0.1
The
isPublic()
function in the NPM packageip
doesn't correctly identify certain private IP addresses in uncommon formats such as0x7F.1
as private. Instead, it reports them as public by returningtrue
. This can lead to security issues such as Server-Side Request Forgery (SSRF) ifisPublic()
is used to protect sensitive code paths when passed user input. Versions 1.1.9 and 2.0.1 fix the issue.NPM IP package vulnerable to Server-Side Request Forgery (SSRF) attacks [HIGH]to NPM IP package incorrectly identifies some private IP addresses as public [MODERATE]