Problem/Motivation

Unable to upgrade using Composer due to dependency on firebase/php-jwt ^6.10. However, due to security advisories (see https://github.com/advisories/GHSA-2x45-7fc3-mxwq "php-jwt contains weak encryption") only version 7 of Firebase is permitted by Composer.

Steps to reproduce

Attempt update of an existing site with this module already managed by Composer.

Proposed resolution

I would have expected altering webform_password_protection_handler/composer.json to have a dependency on "firebase/php-jwt": "^7.0" would address this problem, but apparently not (Composer error remains)

Only way to stop Composer halting site upgrades is to ignore the security warning by using composer config --merge audit.ignore PKSA-y2cr-5h3j-g3ys PKSA-2kqm-ps5x-s4f5. But that still leaves a dependency on an insecure version of firebase/php-jwt

Remaining tasks

The module needs to be updated to utilise a safe version of firebase/php-jwt. This is the bigger issue here

Comments

robcarr created an issue. See original summary.

hoanglv’s picture

Status: Active » Fixed

Fixed in 1.0.x and released in 1.1.0.

- firebase/php-jwt is now required as ^7.0, so Composer no longer conflicts with the security advisory.
- The HS256 signing key is now derived with HMAC-SHA256, so it always meets the minimum key size enforced by php-jwt 7.

Note: existing access tokens are invalidated by this update, so visitors who already entered the password will need to enter it again.

Thanks for the report, robcarr.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.