
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.
@fbem/utils
Advanced tools
@fbem/utils is a package which contains useful utils for functional BEM.
npm i @fbem/utils
compose: (...fns: BemFunction[]) => BemFunctionUse this function when you have multiple style files (e.g. a separate file for each modifier) to
compose different BEM functions into one. compose merges interfaces fields and their types. Take a look below.
import { compose } from '@fbem/utils';
// or import compose from '@fbem/utils/dist/compose';
import { cnButton as modDisabled } from './_disabled/button_disabled.css';
import { cnButton as modStyle } from './_style/button_style.css';
import { cnButton as base } from './button.css';
const cnButton = compose(base, modDisabled, modStyle);
cnButton({ style: 'flat', disabled: true }, ['mix']); // 'button button_style_flat button_disabled mix'
import { compose } from '@fbem/utils';
// or import compose from '@fbem/utils/dist/compose';
import { cnButton as modTypePrimary } from './_type/_primary/button_type_primary.css';
import { cnButton as modTypeSecondary } from './_type/_secondary/button_type_secondary.css';
import { cnButton as base } from './button.css';
const cnButton = compose(base, modTypePrimary, modTypeSecondary);
cnButton({ type: 'primary' }); // 'button button_type_primary'
FAQs
Functional BEM utils
We found that @fbem/utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.