Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-21169: fix XSS bypass by using prototype pollution issue. · AhmedAdelFahim/express-xss-sanitizer@3bf8aaa

The package express-xss-sanitizer before 1.1.3 are vulnerable to Prototype Pollution via the allowedTags attribute, allowing the attacker to bypass xss sanitization.

CVE
#xss

@@ -1222,4 +1222,34 @@ describe("Express xss Sanitize", function () {

});

});

});

describe("Sanitize data with custom options as function", function () {

describe("Sanitize simple object", function () {

it("should sanitize dirty body.", function (done) {

expect(sanitize({

a: "<script>Test</script>",

b: '<p onclick="return;">Test</p>’,

c: '<img src="/"/>’,

}, { allowedKeys: [“c”] })).to.eql({

a: "",

b: "<p>Test</p>",

c: '<img src="/"/>’,

});

done();

});

});

describe("XSS bypass by using prototype pollution issue", function () {

it("should sanitize dirty data after prototype pollution.", function (done) {

// eslint-disable-next-line no-extend-native

Object.prototype.allowedTags = [‘script’];

expect(sanitize({

a: "<script>Test</script>",

}, {})).to.eql({

a: "",

});

done();

});

});

});

});

Related news

GHSA-grjp-4jmr-mjcw: express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute

The package express-xss-sanitizer before 1.1.3 is vulnerable to Prototype Pollution via the `allowedTags` attribute, allowing the attacker to bypass xss sanitization.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907