
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-crop-component
Advanced tools
[](https://badge.fury.io/js/react-crop-component) 
<div id='crop-portal'></div>
//ComponentToBeCrop.js
const ComponentToBeCrop = () => (
<div
style={{
width: 250,
height: 250,
backgroundColor: '#ff44d9',
color: '#fff',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
Crop me if you can
</div>
)
// App.js
import React from 'react'
import ComponentToBeCrop from './ComponentToBeCrop'
import CropComponent from 'react-crop-component'
const MyApp = ()=> (
<>
<ComponentToBeCrop />
<CropComponent
portalId='crop-portal'
canvasConfigs={{
width: 250,
height: 250,
innerWidth: 250,
innerHeight: 250,
}}
Component={ComponentToBeCrop}
/>
</>)
export const MyApp
type defaultValueobject{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
}
object{
position: 'fixed',
left: 0,
top: 0,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
bottom: 0,
right: 0,
background: 'rgba(49, 73, 177, 0.5)',
zIndex: 9999,
}
string canvas-portalReactElement nullobject nullobject nullobject{
padding: 8,
margin: 8,
background: '#273CAF',
color: '#fff',
border: 'none',
outline: 'none',
}
string 'download.png'object{
padding: 8,
margin: 8,
background: '#36C2CE',
color: '#fff',
}
function({ canvasElement, #### onClick }) => (
<a
onClick={onClick}
href={canvasElement && canvasElement.toDataURL()}
download={filename}
style={downloadStyle}
>
DOWNLOAD
</a>
)
function;({ onClick }) => (
<button style={buttonStyle} onClick={onClick}>
CANCEL
</button>
)
function;({ onClick }) => (
<button style={buttonStyle} onClick={onClick}>
Crop Component
</button>
)
Dependency html2canvas
This project was bootstrapped with Create React App.
In the project directory, you can run:
npm startdevelopment env
npm run buildproduction script
npm run npmbuildcreates node_module output file
FAQs
[](https://badge.fury.io/js/react-crop-component) 
We found that react-crop-component 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.