Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. openmage/magento-lts
  4. ›
  5. CVE-2026-42207

CVE-2026-42207: Magento LTS Vulnerable to Open Redirect via Unvalidated `uenc` Parameter in `stockAction()`

May 5, 2026

Mage_ProductAlert_AddController::stockAction() reads the uenc query parameter and passes it directly to $this->_redirectUrl($backUrl) without calling $this->_isUrlInternal() When the supplied product_id does not match any catalog product, the server issues an unvalidated HTTP 302 redirect to whatever URL was provided as uenc.

References

  • github.com/OpenMage/magento-lts
  • github.com/OpenMage/magento-lts/security/advisories/GHSA-qpgq-5g92-j5q8
  • github.com/advisories/GHSA-qpgq-5g92-j5q8
  • nvd.nist.gov/vuln/detail/CVE-2026-42207

Code Behaviors & Features

Detect and mitigate CVE-2026-42207 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 20.18.0

Fixed versions

  • 20.18.0

Solution

Upgrade to version 20.18.0 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

packagist/openmage/magento-lts/CVE-2026-42207.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 00:19:53 +0000.