Problem/Motivation
Security advisory:
composer audit
Found 1 security vulnerability advisory affecting 1 package:
| Package | firebase/php-jwt |
| Severity | high |
| Advisory ID | PKSA-y2cr-5h3j-g3ys |
| CVE | CVE-2025-45769 |
| Title | php-jwt contains weak encryption |
| URL | https://github.com/advisories/GHSA-2x45-7fc3-mxwq |
| Affected versions | <7.0.0 |
| Reported at | 2025-07-31T21:31:53+00:00 |
Steps to reproduce
composer audit
Proposed resolution
Update to a version of firebase/php-jwt >= 7.0
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork salesforce-3574243
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
darktek commentedClosing this in order to post in the right place: https://security.drupal.org/node/184414
Comment #4
darktek commentedI'm reopening this because this was originally reported as a security issue but was cleared by the Security Team to be fixed in public.
Comment #5
therobyouknow commentedWorkaround:
I asked Google Gemini about this: I couldn't fetch the Salesforce module with composer, because composer reported an error.
I pasted my terminal text, with the error, into Gemini, and Gemini replied with this solution:
ddev composer config audit.ignore PKSA-y2cr-5h3j-g3ys PKSA-2kqm-ps5x-s4f5ddev composer require 'drupal/salesforce:^5.1' -Wwhich worked: the fetch of the module proceeded without error.
Gemini told me that the ignore is stored in the composer.json, which it is. So the ignore is correctly localised to the project and not global - which wouldn't be a good idea to ignore it for other projects without thinking about the implications for them.
I'm open to suggestions and updates that supersede this workaround, of course!
For reference, here is the error I saw, which I gave to Gemini to solve:
Comment #6
darktek commentedYeah, I'm using that workaround atm, but I believe (If it's possible) it should be fixed given the fact that is a security breach.
Comment #7
aaronbaumanThank you for the report, but security issue should not be reported to the public issue queue.
Please refer to https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquette/reporting-a-security-issue for proper security issue reporting procedure.
I'm not sure the best way to proceed, now that the issue is here.
I've contacted the security team to advise on how to move forward.
Comment #8
bkosborneThe comment in #4 indicates it was cleared by the security team to remain public
Comment #10
bkosborneComment #11
aaronbaumanYes, I see that now.
Thanks for the MR.
Merged, and will cut a new release soon.
Comment #13
redeight commentedAny chance we can get a release with this rolled in? Without manually adding a "config audit ignore" to composer.json, its preventing composer from updating at all. Seems crazy to prevent all the other modules and core from receiving updates because one dependency is insecure, when the already installed dependency is ALSO insecure... but I guess that's what Composer devs thought was a good idea and here we are. Updated release please?
Comment #14
aaronbaumanthe fix is in 5.1.x-dev, which you can install now with composer.
I've got that deployed to a couple client projects and will gradually be pushing out to more.
If those instances do ok and don't need further adjustments, i will cut a new release.
Comment #15
daniel_j commentedYou may also want to update the composer.json found in modules/salesforce_jwt, just for completeness.
Comment #16
aaronbaumanYes, jwt submodule has also been updated in 5.1.x
https://git.drupalcode.org/project/salesforce/-/commit/58c3ff48468ca4c58...