Link Library
CVE-2026-78397
Configuration-dependent reciprocal-link SSRF
Medium, 4.0 · Public source snapshot: November 12, 2026
Original portfolio report · Source reference · Source reference · Source reference · Source reference · Public advisory
Shared credits and the scope of my investigation are documented below.
An anonymous visitor, Mallory, can submit an internal HTTP address as a reciprocal link and make a configured WordPress server fetch it. Link Library first tries WordPress's protected request function, but retries failures through PHP's unrestricted file-reading API. The submission outcome then exposes whether that fetch succeeded. This is an internal HTTP-response oracle, not disclosure of the fetched body or demonstrated code execution.
WPScan credits me, Charles Vosburgh, as researcher and submitter, assigns CWE-918 and Medium 4.0, and identifies 7.8.8–7.9.5 as affected and 7.9.6 as fixed. Its advisory was published September 23, 2026. Public advisory.
I reviewed the official 7.8.7, 7.8.8, 7.9.5 and 7.9.6 release archives and the now-public coordinator PoC. I did not execute the trigger or test a deployed site. The inspected boundary releases confirm the incomplete hardening in 7.8.8 and its correction in 7.9.6; intermediate patch releases were not individually inspected.
Link Library lets a site owner accept directory entries from visitors. Its reciprocal-link option can publish an entry immediately when the submitted page passes a reciprocal-link check, rather than leaving it pending moderation. That check must not let a visitor use the WordPress server's access to private network services.
The relevant setup is WordPress with an affected Link Library release, a public [link-library-addlink] form, an existing category, ordinary pending moderation (showuserlinks = false), and the optional showifreciprocalvalid setting enabled. In link-library-defaults.php, reciprocal validation is disabled, login is not required, CAPTCHA is off, and the reciprocal field is hidden. Hiding that field does not stop a crafted submission from supplying it. The PHP stream fallback additionally needs URL fopen wrappers enabled and connectivity to the chosen destination. These are prerequisites, not a claim about how commonly sites use this configuration.
The form's nonce is public input, not an account credential. render-link-library-addlink-sc.php emits a token for LL_ADDLINK_FORM, and usersubmission.php checks the same action. Mallory obtains a normal form token; this attack neither steals an authenticated session nor bypasses that nonce check.
In 7.9.5, link-library.php::ll_template_redirect() dispatches a POST containing link_library_user_link_submission to usersubmission.php::link_library_process_user_submission(). That handler checks the form nonce, loads the selected settings, validates submission fields and category, and reads Mallory's ll_reciprocal using sanitize_url(). URL sanitization does not establish that the destination is safe for a server-side request.
Once a valid category is available, the pending-moderation path invokes CheckReciprocalLink() with that same reciprocal address when showifreciprocalvalid is enabled. In link-library.php, the 7.9.5 function first calls wp_safe_remote_get(). Its error path then contains:
if( is_wp_error( $response ) ) {
$data = file_get_contents( $external_link );
if ( false !== $data ) {
return 'exists_found';
The excerpt's indentation is normalized; the statements are unchanged. A safety rejection is handled like any other request error, and the same destination is retried through file_get_contents(), outside WordPress's safe-request checks. Any result other than false is called exists_found, including an empty response. No reciprocal-link content check is performed in this fallback branch.
We can then follow that return value back into usersubmission.php:
if ( $reciprocal_return == 'exists_found' ) {
$newlinkvisibility = 'publish';
$message = "";
} else {
$newlinkvisibility = 'pending';
}
On success, the moderation message is cleared. The handler redirects to a form-result view using short-lived transient data, and render-link-library-addlink-sc.php renders a llmessage element only for a nonempty message. This connects the internal fetch result to a visitor-visible distinction without returning the internal response body.
The release comparison explains why this is an incomplete fix: 7.8.7 uses wp_remote_get() and already has the fallback; 7.8.8 changes the initial call to wp_safe_remote_get() but leaves the unrestricted retry intact. Version 7.9.5 retains that structure. The advisory attributes the earlier range to CVE-2025-68600, rather than assigning those versions to this CVE. I did not establish the fallback's original introduction before 7.8.7. Official 7.8.7 archive, 7.8.8 archive, 7.9.5 archive.
The supported primitive is a server-side HTTP fetch followed by a success/failure distinction. An internal HTTP listener that returns a stream-readable response can cause publication and an empty result message; a failed fetch leaves the entry pending. This does not identify every open TCP port: a non-HTTP service, HTTP error, timeout, intervening proxy or unreachable host can produce a negative result. Server network policy still limits what is reachable.
The fallback does not send the fetched body back to Mallory. This review does not demonstrate credential theft, arbitrary file disclosure, reliable network enumeration or code execution. It also does not assume that every HTTP status produces a successful PHP stream read.
Useful controls are an allowed external reciprocal page, a lab-only internal HTTP listener, the same listener with allow_url_fopen disabled, and the same requests on 7.9.6. Listener logs would distinguish a real network request from a misleading form response. None of these runtime controls was performed for this write-up; the validation basis is the release-source comparison and inspection of the public PoC.
The WPScan advisory now contains its public PoC, which I inspected on October 19, 2026. No executable PoC or captured run output is bundled here.
In an isolated, authorized WordPress lab, the trigger is a normal anonymous link submission carrying the public nonce, selected settings, a valid category and a reciprocal address pointing at a lab-owned internal HTTP listener. The distinguishing fields are link_library_user_link_submission, _wpnonce, settingsid, link_name, link_url, link_category[] and ll_reciprocal. The public procedure follows the submission redirect before comparing the completed form response.
Expected, not observed in this review: a successful fallback changes the entry to published and clears the moderation message, whereas a failed fallback leaves a pending entry. An unrelated submission error is not a valid network verdict; verify that the handler completed and inspect listener logs and entry status. A generic missing CSS element alone is insufficient evidence.
These submissions create persistent directory entries and can generate site-configured notifications. Use only disposable lab categories and destinations, then remove the created entries and stop the listener. Do not probe a production site's internal network.
Upgrade to 7.9.6 or later. In the official fixed release, CheckReciprocalLink() keeps wp_safe_remote_get() but replaces the entire unrestricted retry with:
if( is_wp_error( $response ) ) {
return 'error_403';
A protected request failure now remains a failure. The address is not retried through another transport, so the caller cannot receive exists_found from that fallback. This is a shipped change verified in source, not a proposed patch or an observed fixed-target test.
Regression coverage should exercise the actual public submission route, verify that rejected private destinations cause no fallback request, and confirm that allowed public reciprocal pages still work. Also test fetch errors, empty responses and malformed submission data so unrelated validation failures cannot be mistaken for a network signal. As an interim containment measure, disable reciprocal auto-publication or the public submission feature; disabling URL fopen wrappers blocks this particular fallback but is not a substitute for upgrading. These mitigation effects were not runtime-tested here.
CVE-2026-78397 records an incomplete server-side request safeguard in Link Library 7.8.8–7.9.5. Under optional reciprocal validation, a rejected protected fetch is retried unsafely, and its result influences publication and the submission response. Version 7.9.6 removes the retry. The source establishes the causal path; the public PoC is available, but this write-up does not claim a reproduced exploit or disclosure of internal response bodies.