Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laminas/laminas-form
  4. ›
  5. CVE-2022-23598

CVE-2022-23598: Reflected XSS vulnerability when rendering error messages in laminas-form

January 28, 2022

laminas-form is a package for validating and displaying simple and complex forms. When rendering validation error messages via the formElementErrors() view helper shipped with laminas-form, many messages will contain the submitted value. However, in laminas-form, the value was not being escaped for HTML contexts, which could potentially lead to a reflected cross-site scripting attack. contain a patch to mitigate the vulnerability. A workaround is available. One may manually place code at the top of a view script where one calls the formElementErrors() view helper.

References

  • github.com/advisories/GHSA-jq4p-mq33-w375
  • github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375

Code Behaviors & Features

Detect and mitigate CVE-2022-23598 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 3.1.1

Fixed versions

  • 3.1.1

Solution

Upgrade to version 3.1.1 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

Source file

packagist/laminas/laminas-form/CVE-2022-23598.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:23 +0000.