Yes. api-platform/core (Packagist): upgrade to 4.0.22 or later; api-platform/graphql (Packagist): upgrade to 4.0.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-31481?
Check whether you run api-platform/core (Packagist) or api-platform/graphql (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
api-platform/core (Packagist): upgrade to 4.0.22 or later
composer require api-platform/core:^4.0.22
api-platform/graphql (Packagist): upgrade to 4.0.22 or later