
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-image-zoom-in-place
Advanced tools
A react component to display zoomable images.
The zoom works both on mouse & touchscreen, and is done within the original bounds of the image.
Name | Type | Optional | Description |
---|---|---|---|
src | string | url or base64 string for the image | |
alt | string | x | alt text for the image (using an aria-label) |
zoom | number | default zoom on mouse hover | |
maxZoom | number | maximum allowed zoom muliplication by scroll or touch pinch | |
step | number | zoom step on mouse scroll | |
width | number | x | override default width |
height | number | x | override default height |
Width and height parameters are optional, but using them can avoid layout shift when the image loads. If only one is defined, the second one is derived from the image aspect ratio.
import { ZoomableImage } from "react-image-zoom-in-place";
export default function Home() {
return (
<div >
<ZoomableImage
src={"<image url or base64 here>"}
alt="alt text"
zoom={2}
maxZoom={10}
step={0.1}
/>
</div>
);
}
MIT
https://github.com/MilanFIN/react-image-zoom-in-place
FAQs
A react component to display zoomable images.
The npm package react-image-zoom-in-place receives a total of 0 weekly downloads. As such, react-image-zoom-in-place popularity was classified as not popular.
We found that react-image-zoom-in-place demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.