Skip to content

bug: harden npmDefaultRegistryMatcher #1073

@jkowalleck

Description

@jkowalleck
const npmDefaultRegistryMatcher = /^https?:\/\/registry\.npmjs\.org/

This hostname pattern may match any domain name, as it is missing a '$' or '/' at the end.

vector: register registry.npmjs.org.badactor.net --

see https://github.com/CycloneDX/cyclonedx-javascript-library/security/code-scanning/1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions