CVE-2021-41258 json
Cross-site scripting (XSS) from image block content in the site frontend
published 2021-11-16 4 y ago modified 2026-07-08 4 mo ago also GHSA-cq58-r77c-5jjw , EUVD-2021-2337
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
Kirby is an open source file structured CMS. In affected versions Kirby's blocks field stores structured data for each block. This data is then used in block snippets to convert the blocks to HTML for use in your templates. We recommend to escape HTML special characters to protect against cross-site scripting (XSS) attacks. The default snippet for the image block unfortunately did not use our escaping helper. This made it possible to include malicious HTML code in the source, alt and link fields of the image block, which would then be displayed on the site frontend and executed in the browsers of site visitors and logged in users who are browsing the site. Attackers must be in your group of authenticated Panel users in order to exploit this weakness. Users who do not make use of the blocks field are not affected. This issue has been patched in Kirby version 3.5.8 by escaping special HTML characters in the output from the default image block snippet. Please update to this or a later version to fix the vulnerability.
Patch / fix
- packagist getkirby/cms 3.5.8
- github.com/getkirby/kirby#3510 pull request
- github.com/getkirby/kirby/releases/tag/3.5.8 release
Exploit prediction
0.81% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 2.1 | AV:N/AC:H/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | getkirby/cms | >=3.5.0, <3.5.8 |
3.5.8 |
Affected products
- getkirby kirby
Classification
References
-
github.com
/getkirby/kirby/pull/3510
web, patch, third-party-advisory
-
github.com
/getkirby/kirby/releases/tag/3.5.8
web, release-notes, third-party-advisory
-
github.com
/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-41258
advisory
-
github.com
/getkirby/kirby
package
Sources
- CVE List CVE-2021-41258
- GitHub Advisory GHSA-cq58-r77c-5jjw
- NVD CVE-2021-41258
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.