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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
laminas/laminas-formPackagist | >= 3.1.0, < 3.1.1 | 3.1.1 |
laminas/laminas-formPackagist | >= 3.0.0, < 3.0.2 | 3.0.2 |
laminas/laminas-formPackagist | < 2.17.1 | 2.17.1 |
Affected products
2- Range: < 3.1.1
Patches
Vulnerability mechanics
References
10- github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37nvdPatchThird Party AdvisoryWEB
- getlaminas.org/security/advisory/LP-2022-01nvdMitigationThird Party AdvisoryWEB
- github.com/advisories/GHSA-jq4p-mq33-w375ghsaADVISORY
- github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375nvdMitigationThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-23598ghsaADVISORY
- github.com/laminas/laminas-form/releases/tag/2.17.1ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXEghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/SLNABVK26CE4PFL57VLY242FW3QY4CPCghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/nvd
News mentions
0No linked articles in our index yet.