[php-src] PR #21670: ext/session: Validate SameSite cookie attribute against allowed values

From: Date: Wed, 08 Apr 2026 07:06:14 +0000
Subject: [php-src] PR #21670: ext/session: Validate SameSite cookie attribute against allowed values
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35616@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21670 Author: jorgsowa Applied validation of samesite option in ini, setcookie(), session_set_cookie_params(). Four values are allowed Strict, Lax, None, or empty string. Doc: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#samesitesamesite-value We can apply similar validation to other values, as a few values are vulnerable to CRLF Injection. I'm not sure it's a security issue, so I will just publish it in the next PRs.

« previous php.git-pulls (#35616) next »