Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@aftership/express-sanitized
Advanced tools
Readme
npm install @aftership/express-sanitized
Place this directly after express.bodyParser() and before any express middleware that accesses query or body parameters, e.g.:
var express = require('express'),
expressSanitized = require('express-sanitized');
app.use(express.bodyParser());
app.use(expressSanitized()); // this line follows express.bodyParser()
The string
'<script>document.write('cookie monster')</script> download now'
will be sanitized to ' download now'.
This is a basic implementation of Caja-HTML-Sanitizer with the specific purpose of mitigating against persistent XSS risks.
This module trusts the dependencies to provide basic persistent XSS risk mitigation. A user of this package should review all packages and make their own decision on security and fitness for purpose.
This module was inspired by express-sanitizer. The difference here is strict laziness. This middleware automatically sanitizes post and query values whereas that module requires you to manually sanitize each parameter.
Copyright (c) 2014 Patrick Hogan patrick@callinize.com, MIT License
FAQs
Express middleware for the sanitizer module using Caja's HTML Sanitizer. Identical as 0.5.1
The npm package @aftership/express-sanitized receives a total of 3 weekly downloads. As such, @aftership/express-sanitized popularity was classified as not popular.
We found that @aftership/express-sanitized 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.