Update firebase/php-jwt to ^7.0 (security fix)#456
Open
Conversation
Addresses GHSA-2x45-7fc3-mxwq (CVE-2025-45769, CVSS 7.3) by upgrading firebase/php-jwt from ^5.2 || ^6.2 to ^7.0. The v7 release enforces minimum HMAC key sizes (32 bytes for HS256), which required updating test secret keys and recalculating dependent HMAC fixtures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous lockfile was generated on PHP 8.4, which resolved brick/math to 0.14.8 (requires PHP ^8.2). This broke the library's declared PHP ^8.1 support. Regenerating on PHP 8.1 resolves brick/math to 0.13.1, which supports PHP ^8.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Improves readability by replacing inline hex strings with TEST_API_SECRET and TEST_API_SECRET_ALT constants in BaseTestCase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
firebase/php-jwtfrom^5.2 || ^6.2to^7.0to address security vulnerability GHSA-2x45-7fc3-mxwq (CVE-2025-45769, CVSS 7.3 — weak encryption)Context
firebase/php-jwt v7 enforces minimum key sizes for HMAC algorithms (32 bytes for HS256). Shopify API secrets are always >= 32 characters (legacy format: 32 hex chars, new format:
shpss_+ 32 chars = 38 chars), so no real users are affected by this enforcement. The test suite used short mock secrets ('steffi','rocky') which needed updating.Closes #454
Test plan
🤖 Generated with Claude Code