CVE-2022-23598
Description
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-04-23 |
Timeline
- 2022-01-28Published by the CNA22:00 UTC
- 2022-01-28GitHub advisory published (GHSA-jq4p-mq33-w375)same day
- 2025-04-23CISA SSVC decision recorded1181 days after publication
Exploit and advisory records
GitHub advisory GHSA-jq4p-mq33-w375, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist laminas/laminas-form | before 2.17.1 | 2.17.1 |
| Packagist laminas/laminas-form | from 3.0.0 before 3.0.2 | 3.0.2 |
| Packagist laminas/laminas-form | from 3.1.0 before 3.1.1 | 3.1.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| getlaminas laminas-form | before 2.17.1fixed in 2.17.1from 3.0.0 before 3.0.2fixed in 3.0.23.1.0no fix listed | 2.17.13.0.2not listed |
| fedoraproject fedora | 34no fix listed35no fix listed | not listednot listed |
References
- https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/
- https://getlaminas.org/security/advisory/LP-2022-01
- https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-23598'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-23598'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-23598'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-23598'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).