Home / getkirby / kirby / CVE-2021-41258
CVE-2021-41258: is it exploited, and which versions of getkirby kirby are affected and fixed?
CVE-2021-41258 is a cross-site scripting (XSS) vulnerability in getkirby kirby. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: getkirby/cms from 3.5.0 before 3.5.8 (GitHub advisory GHSA-cq58-r77c-5jjw). Fixed in 3.5.8 (GitHub advisory GHSA-cq58-r77c-5jjw). Severity: High (7.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:53 UTC.
What is CVE-2021-41258?
Cross-site scripting (XSS) from image block content in the site frontend
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.
From the CVE record by GitHub_M, last updated August 4, 2024, 03:08 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| getkirby | kirby | >= 3.5.0, < 3.5.8 |
As the CVE record by GitHub_M states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | getkirby/cms | >= 3.5.0, < 3.5.8 | 3.5.8 | GHSA-cq58-r77c-5jjw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 16, 2021. Summary: Cross-site scripting (XSS) from image block content in the site frontend.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| getkirby | kirby | from 3.5.0 through 3.5.7.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:08 UTC.
How severe is CVE-2021-41258?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N | GitHub_M |
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | NVD |
| Low 2.1 | CVSS 2.0 | AV:N/AC:H/Au:S/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-41258 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.81% probability of exploitation activity in the next 30 days, percentile 58.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
Where are the vendor advisories and references?
- https://github.com/getkirby/kirby/releases/tag/3.5.8 x_refsource_MISC
- https://github.com/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw x_refsource_CONFIRM
- https://github.com/getkirby/kirby/pull/3510 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 15, 2021
- Published
- November 16, 2021, 18:05 UTC
- CVE record updated
- August 4, 2024, 03:08 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:08 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:53 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect kirby?
- Nov 22, 2026CVE-2026-134765 getkirby kirby: time-of-check time-of-use race condition
- Oct 12, 2026CVE-2026-108924 getkirby Kirby: authorization bypass through a user-controlled key (IDOR)
- Aug 31, 2026CVE-2026-75594 getkirby kirby: path traversal (reading or writing files outside the intended folder)
- Aug 31, 2026CVE-2026-75592 getkirby kirby: path traversal (reading or writing files outside the intended folder)
- Aug 31, 2026CVE-2026-71415 getkirby kirby: missing authorization
- Aug 7, 2026CVE-2026-69127 getkirby kirby: system information exposed
- Jul 16, 2026CVE-2026-45368 getkirby kirby: cross-site scripting (XSS)
- Jul 16, 2026CVE-2026-45334 getkirby kirby: missing authorization
Questions about CVE-2021-41258
Is CVE-2021-41258 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.81% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of getkirby kirby are affected by CVE-2021-41258?
getkirby/cms from 3.5.0 before 3.5.8, per the GitHub advisory GHSA-cq58-r77c-5jjw. The tables above give every range the sources list.
Which version fixes CVE-2021-41258?
3.5.8, per the GitHub advisory GHSA-cq58-r77c-5jjw. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-41258?
High (7.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-41258?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.