CVE-2022-23598

Reflected XSS vulnerability when rendering error messages in laminas-form

MEDIUM
6.1
CVSS Score
Published: January 28, 2022 at 10:00 PM UTC
Updated: June 17, 2026 at 04:30 AM UTC
3 products affected across 3 vendorsFedoraLaminas FormLaminas Form

Using laminas-form by laminas?

Get instant alerts when new vulnerabilities affect laminas-form - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1.0%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.17.13.0.0 ≤ v < 3.0.23.1.0
Affected range stops below 2.17.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.0.2, so it looks safe — our inference, not a vendor statement
v < 3.1.1
Affected range stops below 3.1.1, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.1MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card