<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>DangerouslySetInnerHTML - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/dangerouslysetinnerhtml/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 22:22:23 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/dangerouslysetinnerhtml/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2024-58353: Cal.com Cross-Site Scripting Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-07-cve-2024-58353-calcom-xss/</link><pubDate>Thu, 23 Jul 2026 22:22:23 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-cve-2024-58353-calcom-xss/</guid><description>CVE-2024-58353 describes a cross-site scripting (XSS) vulnerability in Cal.com (repository calcom/cal.diy) versions up to and including 4.7.15, where an attacker can inject malicious HTML/JavaScript into booking question labels that is then executed via React's dangerouslySetInnerHTML when a victim visits a publicly accessible single booking view, allowing for arbitrary client-side code execution, particularly impacting self-hosted instances with open registration.</description><content:encoded><![CDATA[<p>Cal.com, specifically the <code>calcom/cal.diy</code> repository, contains a critical cross-site scripting (XSS) vulnerability, identified as CVE-2024-58353, affecting versions up to and including 4.7.15. This vulnerability allows an unauthenticated attacker to inject arbitrary HTML and JavaScript code into &quot;booking question label&quot; fields. The application then renders this unsanitized input via React's <code>dangerouslySetInnerHTML</code> on publicly accessible single booking views (e.g., <code>/booking/&lt;id&gt;</code>). When a victim user visits a malicious booking view URL, the injected script executes in their browser context. This client-side code execution can lead to session hijacking, defacement, or redirection, posing a significant risk, especially for self-hosted Cal.com instances with open registration. The issue is resolved in version 4.7.16.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a vulnerable Cal.com instance (version &lt;= 4.7.15).</li>
<li>The attacker registers or gains access to create new event types within the Cal.com instance.</li>
<li>During the creation or modification of an event type, the attacker crafts a malicious payload (e.g., <code>&lt;script&gt;alert(document.domain)&lt;/script&gt;</code> or a more sophisticated script) and inputs it into a &quot;booking question label&quot; field.</li>
<li>The Cal.com application stores this malicious content in its database without adequately sanitizing the input.</li>
<li>The attacker then obtains the URL for the publicly accessible single booking view associated with the compromised event type (e.g., <code>/booking/&lt;id&gt;</code>).</li>
<li>The attacker distributes this malicious booking view URL to a victim, typically via social engineering or a direct link.</li>
<li>When the victim visits the provided booking view URL, the Cal.com application fetches the stored malicious &quot;booking question label.&quot;</li>
<li>The application renders the page using React's <code>dangerouslySetInnerHTML</code> method, which directly embeds the unsanitized malicious HTML/JavaScript into the victim's browser, leading to client-side code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2024-58353 allows attackers to execute arbitrary HTML and JavaScript in the context of the victim's browser. The direct consequences can include session hijacking, enabling attackers to impersonate the victim, or website defacement. More advanced attacks could involve redirecting users to malicious sites, stealing sensitive data (e.g., cookies, local storage), or performing actions on behalf of the victim through their authenticated session. Self-hosted Cal.com instances with open registration are particularly vulnerable due to the ease with which attackers can create malicious event types.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Cal.com instances to version 4.7.16 or later immediately to patch CVE-2024-58353.</li>
<li>Implement Content Security Policy (CSP) headers across all web applications to mitigate the impact of XSS vulnerabilities by restricting script sources.</li>
<li>Ensure proper input validation and output encoding are enforced for all user-supplied data in web applications, especially in fields like the &quot;booking question label&quot; mentioned in the CVE-2024-58353 description.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>xss</category><category>web-vulnerability</category><category>react</category><category>dangerouslySetInnerHTML</category></item></channel></rss>