Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. sylius/sylius
  4. ›
  5. CVE-2020-15245

CVE-2020-15245: Cross-site Scripting

October 19, 2020 (updated November 18, 2021)

In Sylius, the user may register in a shop by email mail@example.com, verify it, change it to the mail another@domain.com and stay verified and enabled. This may lead to having accounts addressed to totally different emails, that were verified. Note, that this way one is not able to take over any existing account (guest or normal one). The issue has been patched in Sylius As a workaround, you may resolve this issue on your own by creating a custom event listener, which will listen to the sylius.customer.pre_update event. You can determine that email has been changed if customer email and user username are different. They are synchronized later on. Pay attention, to email changing behavior for administrators. You may need to skip this logic for them. In order to achieve this, you should either check master request path info, if it does not contain /admin prefix or adjust event triggered during customer update in the shop. You can find more information on how to customize the event here.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-15245

Code Behaviors & Features

Detect and mitigate CVE-2020-15245 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.9, all versions starting from 1.7.0 before 1.7.9, all versions starting from 1.8.0 before 1.8.3

Fixed versions

  • 1.6.9
  • 1.7.9
  • 1.8.3

Solution

Upgrade to versions 1.6.9, 1.7.9, 1.8.3 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

packagist/sylius/sylius/CVE-2020-15245.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.