
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).
@formspark/use-formspark
Advanced tools
React hooks for Formspark.
Works with React and React Native.
# NPM
npm install @formspark/use-formspark
# Yarn
yarn add @formspark/use-formspark
import React, { useState } from "react";
import { useFormspark } from "@formspark/use-formspark";
const ContactForm = () => {
const [submit, submitting] = useFormspark({
formId: "your-form-id"
});
const [message, setMessage] = useState("");
return (
<form onSubmit={async (e) => {
e.preventDefault();
await submit({ message })
}}>
<textarea
value={message}
onChange={(e) => setMessage(e.target.value)}
/>
<button type="submit" disabled={submitting}>Send</button>
</form>
);
};
Note: do not mistake action url (e.g. https://submit-form.com/capybara
) and form id (e.g. capybara
), this package only uses the latter.
FAQs
React hooks for Formspark
We found that @formspark/use-formspark 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.