CVE-2026-30858: WeKnora: DNS Rebinding Vulnerability in web_fetch Tool Allows SSRF to Internal Resources

Published Mar 6, 2026
·
Updated

Summary

A DNS rebinding vulnerability in the webfetch tool allows an unauthenticated attacker to bypass URL validation and access internal resources on the server, including private IP addresses (e.g., 127.0.0.1, 192.168.x.x). By crafting a malicious domain that resolves to a public IP during validation and subsequently resolves to a private IP during execution, an attacker can access sensitive local services and potentially exfiltrate data.

Details

The vulnerability exists because the webfetch tool lacks complete DNS pinning. The application performs URL validation only once via validateParams(), but the URL is then passed unchanged to the fetchHTMLContent() function, which eventually reaches fetchWithChromedp(). The headless browser (Chromedp) resolves the hostname independently without DNS pinning, allowing a time-of-check-time-of-use (TOCTOU) attack.

Validation phase (first DNS resolution): go if err := t.validateParams(p); err != nil { // Returns error for private IPs results[index] = &webFetchItemResult{ err: err, // ... } return }

Execution phase (second DNS resolution): The original URL (not the resolved IP) is passed through the execution chain: go output, data, err := t.executeFetch(ctx, p) // Calls fetchHTMLContent(ctx, targetURL) where targetURL is the original hostname

Chromedp execution (vulnerable DNS resolution): go func (t WebFetchTool) fetchWithChromedp(ctx context.Context, targetURL string) (string, error) { // targetURL is not DNS-pinned; browser resolves it independently err := chromedp.Run(ctx, chromedp.Navigate(targetURL), // Third DNS lookup occurs here chromedp.WaitReady("body", chromedp.ByQuery), chromedp.OuterHTML("html", &html), ) }

The attacker controls a domain that can be configured to return different DNS responses to different queries, enabling them to bypass the initial private IP check and access restricted resources during the actual fetch.

PoC

Setup: 1. Deploy the DNS rebinding server (attached Python file) with the following systemd configuration:

systemd [Unit] Description=DNS Rebinding Test Server After=network.target

[Service] Type=simple User=root WorkingDirectory=/root/Repos/dns-rebinding-server ExecStart=/root/.proto/shims/python -u /root/Repos/dns-rebinding-server/server.py --token aleister1102 --domain aleister.ninja --port 53 --global-tracking --ip1 1.1.1.1 --ip2 0.0.0.0 --first-response-count 1 --reset-time 0 Restart=always RestartSec=3

[Install] WantedBy=multi-user.target This configures the DNS server to: - Return 1.1.1.1 (a public IP) for the first DNS query - Return 127.0.0.1 (localhost) for all subsequent queries - TTL is set to 0 to prevent caching The sequence can also be reset via reset.domain.com (reset to 1.1.1.1). > Note: We may need to reset the sequence as the TOCTOU attack is not truly reliable and needs to be triggered multiple times.

2. Set up a simple HTTP server on the localhost of the backend service:

bash python -m http.server 8888

3. Configure the malicious domain to point to the DNS rebinding server

Execution: 1. Enable web search on an agent. 2. Prompt the agent to fetch content from the attacker-controlled domain (e.g., http://attacker.example.com) 3. The sequence of events: - First DNS query (validation phase): attacker.example.com → 1.1.1.1 ✓ Passes validation - Second DNS query (execution phase): attacker.example.com → 127.0.0.1 ✗ Bypass achieved - The webfetch tool successfully connects to 127.0.0.1:8080 and returns the local server's content

Result: The attacker gains access to the local HTTP server and can read its content, demonstrating that internal resources are now accessible through the rebinding attack.

<img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/897e8494-f39e-49ce-a02a-5832bb84a73f" />

PoC video:

https://github.com/user-attachments/assets/68daaa87-4b9b-4b6e-b6f6-ee123f5fcda9

Impact Vulnerability Type: DNS Rebinding / Server-Side Request Forgery (SSRF)

Who is impacted: - Any user or agent with web search capability can exploit this vulnerability - The vulnerability grants access to internal services, configuration files, metadata services, and other sensitive resources normally restricted to the internal network - In cloud environments, this could allow access to metadata endpoints (e.g., AWS IMDSv1) to obtain credentials and secrets\

Other sources

WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to version 0.3.0, a DNS rebinding vulnerability in the webfetch tool allows an unauthenticated attacker to bypass URL validation and access internal resources on the server, including private IP addresses (e.g., 127.0.0.1, 192.168.x.x). By crafting a malicious domain that resolves to a public IP during validation and subsequently resolves to a private IP during execution, an attacker can access sensitive local services and potentially exfiltrate data. This issue has been patched in version 0.3.0.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/Tencent/WeKnora<=0.2.14
0.3.0
Tencent WeKnora<0.3.0

Event History

Mar 6, 2026
Advisory Published
via GitHub·11:56 PM
Data Sourced
via GitHub·11:56 PM
DescriptionSeverityWeaknessAffected Software
Mar 7, 2026
CVE Published
via MITRE·04:34 PM
Data Sourced
via MITRE·04:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Feb 17, 58167
Event
via FIRST·03:37 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-30858?

CVE-2026-30858 is classified as a high-severity vulnerability due to its potential for unauthorized access to internal resources.

2

How do I fix CVE-2026-30858?

To fix CVE-2026-30858, update the `github.com/Tencent/WeKnora` tool to version 0.2.14 or later.

3

What type of attack does CVE-2026-30858 enable?

CVE-2026-30858 enables DNS rebinding attacks that allow an attacker to bypass URL validation.

4

Who is affected by CVE-2026-30858?

CVE-2026-30858 affects users of the `github.com/Tencent/WeKnora` tool version 0.2.13 and earlier.

5

What internal resources can an attacker access using CVE-2026-30858?

An attacker can access private IP addresses, including common local addresses like 127.0.0.1 and 192.168.x.x.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203