{"api_version":"1","generated_at":"2026-04-23T13:19:48+00:00","cve":"CVE-2022-23598","urls":{"html":"https://cve.report/CVE-2022-23598","api":"https://cve.report/api/cve/CVE-2022-23598.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23598","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23598"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-28 22:15:00","updated_at":"2023-11-07 03:44:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/","name":"FEDORA-2022-a42e97d8e8","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: php-laminas-form-2.17.1-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/","name":"FEDORA-2022-c138fbb8e0","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: php-laminas-form-2.17.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375","name":"https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375","refsource":"CONFIRM","tags":[],"title":"Reflected XSS vulnerability when rendering error messages in laminas-form · Advisory · laminas/laminas-form · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37","name":"https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-jq4p-mq33-w375 · laminas/laminas-form@43005a3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/","name":"FEDORA-2022-c138fbb8e0","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: php-laminas-form-2.17.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/","name":"FEDORA-2022-a42e97d8e8","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: php-laminas-form-2.17.1-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://getlaminas.org/security/advisory/LP-2022-01","name":"https://getlaminas.org/security/advisory/LP-2022-01","refsource":"MISC","tags":[],"title":"Security Advisories - Laminas Project - Enterprise PHP Framework","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23598","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23598","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23598","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23598","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23598","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"getlaminas","cpe5":"laminas-form","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23598","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"getlaminas","cpe5":"laminas-form","cpe6":"3.1.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-23598","qid":"282354","title":"Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-c138fbb8e0)"},{"cve":"CVE-2022-23598","qid":"282355","title":"Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-a42e97d8e8)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-23598","STATE":"PUBLIC","TITLE":"Reflected XSS vulnerability when rendering error messages in laminas-form"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"laminas-form","version":{"version_data":[{"version_value":"< 3.1.1"}]}}]},"vendor_name":"laminas"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375","refsource":"CONFIRM","url":"https://github.com/laminas/laminas-form/security/advisories/GHSA-jq4p-mq33-w375"},{"name":"https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37","refsource":"MISC","url":"https://github.com/laminas/laminas-form/commit/43005a3ec4c2292d4f825273768d9b884acbca37"},{"name":"https://getlaminas.org/security/advisory/LP-2022-01","refsource":"MISC","url":"https://getlaminas.org/security/advisory/LP-2022-01"},{"refsource":"FEDORA","name":"FEDORA-2022-a42e97d8e8","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SLNABVK26CE4PFL57VLY242FW3QY4CPC/"},{"refsource":"FEDORA","name":"FEDORA-2022-c138fbb8e0","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CFF6WJ5I7PSEBRF6I753WKE2BXFBGQXE/"}]},"source":{"advisory":"GHSA-jq4p-mq33-w375","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-28 22:15:00","lastModifiedDate":"2023-11-07 03:44:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*","versionEndExcluding":"2.17.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getlaminas:laminas-form:3.1.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23598","Ordinal":"226420","Title":"CVE-2022-23598","CVE":"CVE-2022-23598","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23598","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"23598","Ordinal":"2","NoteData":"2022-01-28","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"23598","Ordinal":"3","NoteData":"2022-02-09","Type":"Other","Title":"Modified"}]}}}