Skip to content

Pin dependencies #155

@sjockers

Description

@sjockers

There's a (major?) NPM security incident that caused malicious code to be shipped with specific versions of several common NPM packages: https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack

The attack is apparently targeted at crypto transactions, so threat seems low for us(?). Still, it may make sense to take short-term steps against this:

Suggested steps (quick fix)

  • Remove version caret symbols: In components/components/package.json, remove all ^ symbols from package version numbers to pin exact versions

  • Remove previously installed dependencies: Delete both package-lock.json and node_modules folder

  • Reinstall dependencies: Run npm install to reinstall all packages with the exact pinned versions

  • Verify the project still works: Check storybook

  • Create new release: Make a new patch release of the components package with the pinned dependencies

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions