New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

web-secure

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-secure

A comprehensive security middleware for Node.js applications that helps secure connections between web servers and devices, with built-in protection against XSS, CSRF, and other common web vulnerabilities.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

WebSecure

A comprehensive security middleware for Node.js applications that helps secure connections between web servers and devices, with built-in protection against XSS, CSRF, and other common web vulnerabilities.

Features

  • 🔒 Encryption Utilities: AES-256-GCM encryption/decryption for sensitive data
  • 🛡️ XSS Protection: Content Security Policy implementation and HTML sanitization
  • 🔐 CSRF Protection: Token generation and validation for forms and AJAX requests
  • 📡 Security Headers: Comprehensive HTTP security headers (HSTS, X-Frame-Options, etc.)
  • 🔍 Input Sanitization: Utilities to sanitize user input and prevent injection attacks
  • 🌐 HTTPS Enforcement: Automatic redirection to HTTPS in production environments
  • 📝 TypeScript Support: Full type safety with comprehensive interfaces

Installation

npm install web-secure

FAQs

Package last updated on 16 Mar 2025

Did you know?

Socket

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.

Install

Related posts