
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-dark-modal
Advanced tools
Simple React modal component as a transparent dark overlay 🌑
🚀 Try react-dark-modal on CodeSandbox
npm install --save react-dark-modal
OR
yarn add react-dark-modal
import React, { useState } from 'react';
import { Modal } from 'react-dark-modal';
import 'react-dark-modal/dist/index.css';
const App = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
const handleOpen = () => {
setIsModalOpen(true);
};
const handleClose = () => {
setIsModalOpen(false);
};
return (
<>
<button onClick={handleOpen}>Open the modal</button>
<Modal open={isModalOpen} onClose={handleClose}>
<h1>Click elsewhere to close the modal</h1>
</Modal>
</>
);
};
export default App;
MIT © Yifan Ai
FAQs
Simple React modal component as a transparent dark overlay
The npm package react-dark-modal receives a total of 7 weekly downloads. As such, react-dark-modal popularity was classified as not popular.
We found that react-dark-modal 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
/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.