
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@hydrogen-design-system/component-button
Advanced tools
You can install this component as a standalone package using npm install @hydrogen-design-system/component-button --save-dev
This component can also be installed as a part of Hydrogen in its entirety. Learn more.
For standard usage, please see Hydrogen's documentation.
Hydrogen's properties are built using Gulp, Sass, Autoprefixer, CSSnano, and Babel.
This component module contains the following in the dist folder:
This component currently supports the following markup and/or frameworks:
Please ensure that work on this component updates all supported markup where possible.
The code for this component can be found in:
src/markup/src/scripts/src/styles/You will need:
_VERSION is used by Hydrogen to process the component's files and generate a versioned instance of the component when it is built. Please ensure that all references to the main component's data-attribute have _VERSION appended (e.g. data-h2-accordion_VERSION) in the following places:
src/markupsrc/scriptssrc/styles/instance.scssIt is also important to use _VERSION when creating a function for your component, as the scripts also need to be namespaced in the event a user imports an older version of your component (to prevent conflicting with the newest version). This can be done by creating functions in src/scripts that follow a function myNewFunctionName_VERSION () {} pattern.
npm install
npm run dev
npm run build
npm publish
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.