CVE-2024-39691
JavaScript vulnerability analysis and mitigation

Overview

matrix-appservice-irc is a Node.js IRC bridge for the Matrix messaging protocol. The vulnerability (CVE-2024-39691) was discovered in versions before 2.0.1, where a malicious Matrix homeserver could potentially leak truncated message content of messages it shouldn't have access to. This vulnerability was related to the fix for CVE-2024-32000 included in matrix-appservice-irc 2.0.0, which incorrectly relied on homeserver-provided timestamps for access control (GitHub Advisory).

Technical details

The vulnerability stems from the bridge's reliance on the Matrix homeserver-provided timestamp (origin_server_ts) to determine whether a user has access to events they're replying to. Since this value is controlled by external entities, a malicious Matrix homeserver could fabricate the timestamp to trick the bridge into leaking room messages it should not have access to. The issue has a CVSS v3.1 Base Score of 4.3 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (GitHub Advisory).

Impact

A malicious Matrix homeserver joined to a room with a vulnerable matrix-appservice-irc bridge instance could potentially access truncated versions of room messages it should not have access to (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in matrix-appservice-irc version 2.0.1, which drops the reliance on origin_server_ts and instead tracks event timestamps internally. As a workaround, administrators can limit the amount of information leaked by setting a reply template that doesn't contain the original message (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management