New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@buildery-it/express-sanitizeurl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buildery-it/express-sanitizeurl

ExpressJS middleware that checks request URL for potentially breaking things

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@buildery-it/express-sanitizeurl

ExpressJS middleware that checks request URL for potentially breaking things, such as:

  • Unparsable query string sequences that would crash on attempt to parse on the client side
  • Double question mark in URL
  • Multiple slashes

After one of the above checks fails the middleware attempts to guess a safe variant of the url and redirect there.

Options:

  • redirectTo (string): When url contains breaking character sequences and is impossible to parse, redirect to this URL, default: '/'

Usage:

app.use(require('@buildery-it/express-sanitizeurl')());

Keywords

FAQs

Package last updated on 20 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc