Skip to content

Commit 162b4b9

Browse files
Merge branch 'main' into feature/m2m_quota
2 parents 030303d + 03579f7 commit 162b4b9

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.13.0
1+
8.14.0

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [8.14.0](https://github.com/auth0/auth0-PHP/tree/8.14.0) (2025-05-16)
4+
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/8.13.0...8.14.0)
5+
6+
**Fixed**
7+
8+
- Security fix: Resolve CVE-2025-47275
9+
310
## [8.13.0](https://github.com/auth0/auth0-PHP/tree/8.13.0) (2024-11-15)
411
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/8.12.0...8.13.0)
512

src/Auth0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class Auth0 implements Auth0Interface
2121
/**
2222
* @var string
2323
*/
24-
public const VERSION = '8.13.0';
24+
public const VERSION = '8.14.0';
2525

2626
/**
2727
* Authentication Client.

src/Store/CookieStore.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use function is_array;
1414
use function is_int;
1515
use function is_string;
16+
use function strlen;
1617

1718
/**
1819
* This class provides a layer to persist transient auth data using cookies.
@@ -39,6 +40,11 @@ final class CookieStore implements StoreInterface
3940
*/
4041
public const VAL_CRYPTO_ALGO = 'aes-128-gcm';
4142

43+
/**
44+
* @var int
45+
*/
46+
public const VAL_CRYPTO_TAG_LENGTH_BYTES = 16;
47+
4248
/**
4349
* When true, CookieStore will not setState() itself. You will need manually call the method to persist state to storage.
4450
*/
@@ -123,7 +129,7 @@ public function decrypt(
123129
$iv = base64_decode($data['iv'], true);
124130
$tag = base64_decode($data['tag'], true);
125131

126-
if (! is_string($iv) || ! is_string($tag)) {
132+
if (! is_string($iv) || ! is_string($tag) || self::VAL_CRYPTO_TAG_LENGTH_BYTES !== strlen($tag)) {
127133
return null;
128134
}
129135

0 commit comments

Comments
 (0)