First published: Fri Jan 28 2022(Updated: )
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 prior to version 3.1.1, the value was not being escaped for HTML contexts, which could potentially lead to a reflected cross-site scripting attack. Versions 3.1.1 and above 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. More information about this workaround is available on the GitHub Security Advisory.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Getlaminas Laminas-form | <2.17.1 | |
Getlaminas Laminas-form | >=3.0.0<3.0.2 | |
Getlaminas Laminas-form | =3.1.0 | |
Fedoraproject Fedora | =34 | |
Fedoraproject Fedora | =35 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-23598 is a vulnerability in the laminas-form package that allows rendered validation error messages to contain the submitted value.
As a user, you cannot directly exploit CVE-2022-23598, but an attacker could potentially use the vulnerability to gain information about the submitted values in validation error messages.
The severity of CVE-2022-23598 is medium, with a CVSS score of 6.1.
Versions up to and including 2.17.1 of Getlaminas Laminas-form, versions 3.0.0 to 3.0.2 of Getlaminas Laminas-form, and version 3.1.0 of Getlaminas Laminas-form are affected. Also, Fedora 34 and Fedora 35 are affected.
To fix CVE-2022-23598, update to version 3.1.1 or later of Getlaminas Laminas-form package.