Commit aebacaa3 authored by Evan Lucas's avatar Evan Lucas Committed by James M Snell
Browse files

http: check reason chars in writeHead

Previously, the reason argument passed to ServerResponse#writeHead was
not being properly validated.  One could pass CRLFs which could lead to
http response splitting. This commit changes the behavior to throw an
error in the event any invalid characters are included in the reason.

CVE-2016-5325

PR-URL: https://github.com/nodejs/node-private/pull/60


Reviewed-By: default avatarFedor Indutny <fedor.indutny@gmail.com>
parent f24fc3e2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment