
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.
react-fieldz
Advanced tools
`react-fieldz` is a library built off of [`fieldz`](https://npmjs.org/fieldz).
react-fieldzreact-fieldz is a library built off of fieldz.
It provides the useFieldz react hook, which simply wraps fieldz in React's useState.
Please see fieldz for more detail on the api.
const fieldProperties = {
firstName: {
init: "",
validate: nameValidator
},
customField: {
validate: (val: string) => {
if (val !== "hello") {
return [new Error("value must be hello!")]
}
return []
},
init: "this is my init value"
}
}
const camelToTitle = camelCase => camelCase
.replace(/([A-Z])/g, match => ` ${match}`)
.replace(/^./g, match => match.toUpperCase())
.trim()
const Form = () => {
const [{actions, fieldsState}, setFieldsState] = useFieldz(fieldProperties)
const {setValue, setValues, setTouched, resetField, resetFields } = actions
return (
<form>
{Object.entries(fieldsState)
.map(([fieldName, {errors, value, touched, pristine}]) => (
<div key={fieldName}>
{(touched && errors.length) ?
<span className="input-error">
{errors.map(err => <div>{err.toString()}</div>)}
</span> : ""
}
<label htmlFor={fieldName}>{camelToTitle(fieldName)}</label>
<input
name={fieldName}
id={fieldName}
value={value}
aria-label={fieldName}
onChange={e => setFieldsState(setValue(fieldName, e.target.value))}
onBlur={_ => setFieldsState(setTouched(fieldName))}
/>
</div>
))
}
</form>
)
}
FAQs
`react-fieldz` is a library built off of [`fieldz`](https://npmjs.org/fieldz).
We found that react-fieldz 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.