
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Node.js Connect middleware to sanitize user input coming from POST body, GET queries, and url params.
Node.js Connect middleware to sanitize user input coming from POST body, GET queries, and url params.
npm install xss-purge
const express = require('express');
const xssPurge = require('xss-purge');
const app = express();
app.use(xssPurge());
app.listen(5000)
This will sanitize any data in req.body, req.query, and req.params. You can also access the API directly if you don't want to use as middleware.
FAQs
Node.js Connect middleware to sanitize user input coming from POST body, GET queries, and url params.
The npm package xss-purge receives a total of 0 weekly downloads. As such, xss-purge popularity was classified as not popular.
We found that xss-purge 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.