{"id":"CVE-2022-24733","aliases":["CVE-2022-24733","GHSA-4jp3-q2qm-9fmw"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Restriction of Rendered UI Layers or Frames in Sylius","summary":"Sylius is an open source eCommerce platform. Prior to versions 1.9.10, 1.10.11, and 1.11.2, 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. The issue is fixed in versions 1.9.10, 1.10.11, and 1.11.2. A workaround is available. Every response from app should have an X-Frame-Options header set to: ``sameorigin``. To achieve that, add a new `subscriber` in the app.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sylius is an open source eCommerce platform. Prior to versions 1.9.10, 1.10.11, and 1.11.2, 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. The issue is fixed in versions 1.9.10, 1.10.11, and 1.11.2. A workaround is available. Every response from app should have an X-Frame-Options header set to: ``sameorigin``. To achieve that, add a new `subscriber` in the app.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIt 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\n\n### Patches\n\nThe issue is fixed in versions: 1.9.10, 1.10.11, 1.11.2, and above.\n\n### Workarounds\n\nEvery 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. \n\n```php\n<?php\n\n// src/EventListener/XFrameOptionsSubscriber.php\n\nnamespace App\\EventListener\n\nfinal class XFrameOptionsSubscriber implements EventSubscriberInterface\n{\n    public static function getSubscribedEvents(): array\n    {\n        return [\n            KernelEvents::RESPONSE => 'onKernelResponse',\n        ];\n    }\n\n    public function onKernelResponse(ResponseEvent $event): void\n    {\n        if (!$this->isMainRequest($event)) {\n            return;\n        }\n\n        $response = $event->getResponse();\n\n        $response->headers->set('X-Frame-Options', 'sameorigin');\n    }\n\n    private function isMainRequest(ResponseEvent $event): bool\n    {\n        if (\\method_exists($event, 'isMainRequest')) {\n            return $event->isMainRequest();\n        }\n\n        return $event->isMasterRequest();\n    }\n}\n\n```\n\nAnd register it in the container:\n\n```yaml\n# config/services.yaml\nservices:\n    # ...\n    App\\EventListener\\XFrameOptionsSubscriber:\n        tags: ['kernel.event_subscriber']\n```\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Sylius issues](https://github.com/Sylius/Sylius/issues)\n* Email us at [security@sylius.com](mailto:security@sylius.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Sylius es una plataforma de comercio electrónico de código abierto. En versiones anteriores a 1.9.10, 1.10.11 y 1.11.2, es posible que una página controlada por un atacante cargue el sitio web dentro de un iframe. Esto permitiría un ataque de clickjacking, en el que la página del atacante superpone la interfaz de la aplicación objetivo con una interfaz diferente proporcionada por el atacante. El problema ha sido corregido en versiones 1.9.10, 1.10.11 y 1.11.2. Se presenta una medida de mitigación disponible. Cada respuesta de la aplicación debe tener un encabezado X-Frame-Options configurada como \"sameorigin\". Para conseguirlo, añada un nuevo \"subscriber\" en la aplicación","source":"nvd"}],"published":"2022-03-14T18:50:10.000Z","modified":"2026-06-17T04:32:23.757Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-1021"],"affected":[{"ranges":[{"version":"< 1.9.10","status":"affected"},{"version":">= 1.10.0, < 1.10.11","status":"affected"},{"version":">= 1.11.0, < 1.11.2","status":"affected"}],"vendor":"Sylius","product":"Sylius","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.9.10"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.10.0","status":"affected","fixed":"1.10.11"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.11.0","status":"affected","fixed":"1.11.2"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.9.10"},{"status":"affected","introduced":"1.10.0","fixed":"1.10.11"},{"status":"affected","introduced":"1.11.0","fixed":"1.11.2"}],"vendor":"sylius","product":"sylius","cpe":"cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Sylius/Sylius/security/advisories/GHSA-4jp3-q2qm-9fmw","tags":["mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Sylius/Sylius/releases/tag/v1.10.11","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Sylius/Sylius/releases/tag/v1.11.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Sylius/Sylius/releases/tag/v1.9.10","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24733","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Sylius/Sylius","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:09:08.211Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24733","url":"https://www.cve.org/CVERecord?id=CVE-2022-24733","licence":"CVE Terms of Use","modified":"2025-04-23T18:54:19.052Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4jp3-q2qm-9fmw","url":"https://github.com/advisories/GHSA-4jp3-q2qm-9fmw","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:34.207Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24733","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24733","licence":"Public domain","modified":"2026-06-17T04:32:23.757Z"}],"updatedAt":"2026-11-25T22:58:10.095Z","epss":{"score":0.00907,"percentile":0.60975,"date":"2026-12-02T12:00:21.000Z"}}