CVE-2018-12290
Description
The Yii2-StateMachine extension v2.x.x for Yii2 suffers from a cross-site scripting (XSS) vulnerability due to insufficient filtering of the role parameter.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
The Yii2-StateMachine extension v2.x.x for Yii2 suffers from a cross-site scripting (XSS) vulnerability due to insufficient filtering of the role parameter.
Vulnerability
The Yii2-StateMachine extension versions 2.x.x for the Yii2 framework contains a cross-site scripting (XSS) vulnerability. The role parameter is not properly sanitized, allowing injection of arbitrary JavaScript code [2].
Exploitation
An attacker can exploit this by sending a GET request with a crafted role parameter containing malicious script, e.g., ?role=guest'%22()%26%25 [2]. No special privileges are required as the parameter is user-controlled.
Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's browser, leading to information disclosure, session hijacking, or other client-side attacks [2].
Mitigation
No official fix was disclosed in the available references. Users should apply input validation and output encoding to the role parameter, or disable the extension if not needed [2].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ptheofan/yii2-statemachinePackagist | >= 2.0.0-RC1, <= 2.0.0 | — |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-65qg-f77j-cccfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-12290ghsaADVISORY
- www.iwantacve.cn/index.php/archives/40/mitrex_refsource_MISC
- web.archive.org/web/20180624194633/http://www.iwantacve.cn/index.php/archives/40ghsaWEB
News mentions
0No linked articles in our index yet.