Skip to content

Commit 08a6bc7

Browse files
committed
1 parent b28606b commit 08a6bc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/vulnerabilities.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,9 @@ describe('(GHSA-v5hf-f4c3-m5rv) Stored XSS via .svgz, .xht, .xml, .xsl, .xslt fi
11751175
}
11761176
});
11771177

1178+
// Headers are intentionally omitted below so that the middleware parses _ContentType
1179+
// from the JSON body and sets it as the content-type header. When X-Parse-Application-Id
1180+
// is sent as a header, the middleware skips body parsing and _ContentType is ignored.
11781181
it('blocks extensionless upload with application/xhtml+xml content type', async () => {
11791182
const xhtContent = Buffer.from(
11801183
'<?xml version="1.0"?><html xmlns="http://www.w3.org/1999/xhtml"><body><script>alert(1)</script></body></html>'

0 commit comments

Comments
 (0)