CVE-2021-41258
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account, but needs a user to act. High risk of data exposure, data tampering.
- Exploit odds
- 0.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.8% in the next 30 days (EPSS).
- Severity: 7.3 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.8% · EPSS, next 30 days
- Weakness
- CWE-79 · Cross-site scripting
- Record status
- Modified
Affected
- Getkirby Kirby ≤ 3.5.7.1
Attack profile CVSS 3.1 · 7.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-41258.md and follow it. Check whether this project is affected by CVE-2021-41258. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/getkirby/kirby/pull/3510
- https://github.com/getkirby/kirby/releases/tag/3.5.8
- https://github.com/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw
- https://github.com/getkirby/kirby/pull/3510
- https://github.com/getkirby/kirby/releases/tag/3.5.8
- https://github.com/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw
References
- https://github.com/getkirby/kirby/pull/3510
- https://github.com/getkirby/kirby/releases/tag/3.5.8
- https://github.com/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw
- https://github.com/getkirby/kirby/pull/3510
- https://github.com/getkirby/kirby/releases/tag/3.5.8
- https://github.com/getkirby/kirby/security/advisories/GHSA-cq58-r77c-5jjw