<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[nodebb-plugin-link-preview not working after NodeBB updated to 4.14.4]]></title><description><![CDATA[<p dir="auto">Today I found that the link preview disappeared. However, if I check "Youtube" the preview for Youtube works</p>
]]></description><link>https://bbs.spacc.eu.org/new/topic/5d6b2d6b-b399-491b-971a-ab7d893f6fee/nodebb-plugin-link-preview-not-working-after-nodebb-updated-to-4.14.4</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 04:12:03 GMT</lastBuildDate><atom:link href="https://bbs.spacc.eu.org/new/topic/5d6b2d6b-b399-491b-971a-ab7d893f6fee.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jul 2026 09:50:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to nodebb-plugin-link-preview not working after NodeBB updated to 4.14.4 on Thu, 30 Jul 2026 13:53:23 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.nodebb.org/user/jasonwch" target="_blank" rel="noopener noreferrer nofollow ugc">@jasonwch</a> I blame AI for exposing DNS rebinding as a problem at all.</p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107720</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107720</guid><dc:creator><![CDATA[julian@community.nodebb.org]]></dc:creator><pubDate>Thu, 30 Jul 2026 13:53:23 GMT</pubDate></item><item><title><![CDATA[Reply to nodebb-plugin-link-preview not working after NodeBB updated to 4.14.4 on Thu, 30 Jul 2026 13:35:24 GMT]]></title><description><![CDATA[<p dir="auto">(Tested on my dev environment and confirmed)</p>
<p dir="auto">This is due to link-preview-js 4.0.4 module bug (reported at <a href="https://github.com/OP-Engineering/link-preview-js/issues/182" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/OP-Engineering/link-preview-js/issues/182</a>)</p>
<p dir="auto">For proper fix, NodeBB need to embed 5.x which fix this issue</p>
<p dir="auto">For immediate fix, modify /usr/src/app/node_modules/link-preview-js/build/index.js</p>
<p dir="auto">Replace</p>
<pre><code>    const parsedUrl = new URL(url);
    parsedUrl.hostname = formatHostnameForUrl(resolvedAddress);
    return parsedUrl.href;
</code></pre>
<p dir="auto">with</p>
<pre><code>return url;
</code></pre>
<p dir="auto">This will return to 4.0.3 approach</p>
<p dir="auto">Potential risk (by AI):<br />
an attacker who controls DNS for a domain they post returns a public IP to resolveDNSHost (passes throwOnLoopback), then returns an internal IP milliseconds later when fetch re-resolves. The fetched internal service's HTML/text would render into a preview card → SSRF data-exfiltration channel.</p>
<p dir="auto">Risk is low:</p>
<ul>
<li>Requires authenticated posting + a reliable rebinding race (hard to time) — not a trivial drive-by.</li>
<li>Cloud metadata (169.254.169.254) and all RFC-1918 ranges are still blocked on the first resolution. The exposure is the second resolution only.</li>
</ul>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107718</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107718</guid><dc:creator><![CDATA[jasonwch@community.nodebb.org]]></dc:creator><pubDate>Thu, 30 Jul 2026 13:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to nodebb-plugin-link-preview not working after NodeBB updated to 4.14.4 on Thu, 30 Jul 2026 12:42:20 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.nodebb.org/user/dave1904" target="_blank" rel="noopener noreferrer nofollow ugc">@dave1904</a> I am using docker deploy</p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107717</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107717</guid><dc:creator><![CDATA[jasonwch@community.nodebb.org]]></dc:creator><pubDate>Thu, 30 Jul 2026 12:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to nodebb-plugin-link-preview not working after NodeBB updated to 4.14.4 on Thu, 30 Jul 2026 10:05:57 GMT]]></title><description><![CDATA[<p dir="auto">Did you Upgrade node js?</p>
<p dir="auto">See Here: <a href="https://community.nodebb.org/topic/17384/nodebb-plugin-link-preview-rich-embeds-and-link-previews/71" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.nodebb.org/topic/17384/nodebb-plugin-link-preview-rich-embeds-and-link-previews/71</a></p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107714</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/107714</guid><dc:creator><![CDATA[dave1904@community.nodebb.org]]></dc:creator><pubDate>Thu, 30 Jul 2026 10:05:57 GMT</pubDate></item></channel></rss>