
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.
Action->Dispatch->Services->Store flow connected to React
There is more information in npm module adss
npm install --save react-adss
Create logic:
import { createLogic } from 'adss'
const logic = createLogic()
const delay = (t) => new Promise((resolve) => setTimeout(resolve, t))
const updater = (reducer) => (store) => ({...store, y1: reducer(store.y1)})
const stateAction = (reducer) => ({setState}) => setState(updater(reducer))
const setV2 = (v) => stateAction((state) => ({...state, v2: v}) )
const incrementValue = (v) => stateAction((state) => ({...state, v1: state.v1 + v}) )
const multiplyValue = (v) => stateAction((state) => ({...state, v1: state.v1 * v}) )
const incMultValue = (inc, mult) => async function f({ dispatch }) {
dispatch(incrementValue(inc))
await delay(100)
dispatch(multiplyValue(mult))
}
const incMultValueOnce = (inc, mult) => ({ hold }) => {
hold(incMultValue(inc, mult))
}
Create Container:
const MyComponent = (props) => {
console.log('render')
return <div>
{props.v1}
<button onClick={props.onClickIncMult}>incMultValue</button>
<button onClick={props.onClickIncMultOnce}>incMultValueOnce</button>
<input onChange={props.onChangeV2} value={props.v2}/>
</div>
}
const connect = reactADSS.connect
const logic = adss.createLogic({y1:{v1: 0, v2: 0}})
const stateToProps = (state) => ({
v1: state.y1.v1,
v2: state.y1.v2
})
const actionsToProps = {
onClickIncMult: () => incMultValue(7,2),
onClickIncMultOnce: () => incMultValueOnce(7,2),
onChangeV2: ({ target: { value } }) => setV2(value)
}
const MyContainer = connect(stateToProps, actionsToProps)(MyComponent)
Use provider and container:
<Provider logic={logic}>
<MyContainer />
</Provider>
Clone repository from https://github.com/simprl/react-adss
Run script for initialize npm
npm i
Run styleguide script for see example in the browser
npm run styleguide
MIT
FAQs
Action->Dispatch->Services->Store flow connected to React
The npm package react-adss receives a total of 0 weekly downloads. As such, react-adss popularity was classified as not popular.
We found that react-adss 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.