CVE-2022-24733

CVE-2022-24733 is a medium-severity security vulnerability in sylius/sylius (composer), affecting versions < 1.9.10. It is fixed in 1.9.10, 1.10.11, 1.11.2.

Summary

Workarounds

Every response from app should have an X-Frame-Options header set to: sameorigin. To achieve that you just need to add a new subscriber in your app.

<?php

// src/EventListener/XFrameOptionsSubscriber.php

namespace App\EventListener

final class XFrameOptionsSubscriber implements EventSubscriberInterface
{
    public static function getSubscribedEvents(): array
    {
        return [
            KernelEvents::RESPONSE => 'onKernelResponse',
        ];
    }

    public function onKernelResponse(ResponseEvent $event): void
    {
        if (!$this->isMainRequest($event)) {
            return;
        }

        $response = $event->getResponse();

        $response->headers->set('X-Frame-Options', 'sameorigin');
    }

    private function isMainRequest(ResponseEvent $event): bool
    {
        if (\method_exists($event, 'isMainRequest')) {
            return $event->isMainRequest();
        }

        return $event->isMasterRequest();
    }
}

And register it in the container:

# config/services.yaml
services:
    # ...
    App\EventListener\XFrameOptionsSubscriber:
        tags: ['kernel.event_subscriber']

For more information

If you have any questions or comments about this advisory:

Impact

It is possible for a page controlled by an attacker to load the website within an iframe. This will enable a clickjacking attack, in which the attacker's page overlays the target application's interface with a different interface provided by the attacker

CVE-2022-24733 has a CVSS score of 6.1 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.9.10, 1.10.11, 1.11.2); upgrading removes the vulnerable code path.

Affected versions

sylius/sylius (< 1.9.10) sylius/sylius (>= 1.10.0, < 1.10.11) sylius/sylius (>= 1.11.0, < 1.11.2)

Security releases

sylius/sylius → 1.9.10 (composer) sylius/sylius → 1.10.11 (composer) sylius/sylius → 1.11.2 (composer)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

The issue is fixed in versions: 1.9.10, 1.10.11, 1.11.2, and above.

Frequently Asked Questions

  1. What is CVE-2022-24733? CVE-2022-24733 is a medium-severity security vulnerability in sylius/sylius (composer), affecting versions < 1.9.10. It is fixed in 1.9.10, 1.10.11, 1.11.2.
  2. How severe is CVE-2022-24733? CVE-2022-24733 has a CVSS score of 6.1 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of sylius/sylius are affected by CVE-2022-24733? sylius/sylius (composer) versions < 1.9.10 is affected.
  4. Is there a fix for CVE-2022-24733? Yes. CVE-2022-24733 is fixed in 1.9.10, 1.10.11, 1.11.2. Upgrade to this version or later.
  5. Is CVE-2022-24733 exploitable, and should I be worried? Whether CVE-2022-24733 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2022-24733 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2022-24733?
    • Upgrade sylius/sylius to 1.9.10 or later
    • Upgrade sylius/sylius to 1.10.11 or later
    • Upgrade sylius/sylius to 1.11.2 or later

Other vulnerabilities in sylius/sylius

Stop the waste.
Protect your environment with Kodem.