Problem with generating v2024 after installing v2026

Just installed v2026 but still need to maintain v2024 projects.
v2024 projects now fail to generate with a composer error…

Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • Root composer.json requires firebase/php-jwt ^6.3.0, found firebase/php-jwt[v6.3.0, ..., v6.11.1] but these were not loaded, because they are affected by security advisories

I understand what it is saying but I'm not sure how to fix it??

Thanks