CVE-2026-66598 in B2BKing Premium Plugininfo

Summary

by MITRE • 08/20/2026

Unauthenticated Cross Site Scripting (XSS) in B2BKing Premium <= 5.6.07 versions.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 08/20/2026

The vulnerability identified as an unauthenticated cross-site scripting flaw within the B2BKing Premium plugin for WordPress, affecting versions up to and including 5.6.07, represents a significant security risk due to its lack of authentication requirements. This specific characteristic allows any remote attacker with network access to exploit the weakness without needing valid credentials or prior interaction with an authenticated user session. The core technical flaw stems from insufficient sanitization and validation of input data received by the application before it is processed for display in web pages. When a malicious actor submits crafted HTTP requests containing executable JavaScript payloads, the server fails to properly escape these inputs, resulting in the direct injection of client-side code into the HTML response sent back to other users or even potentially executed within the context of an administrator's browser if they view compromised content.

From a technical perspective, this vulnerability aligns closely with CWE-79, which is classified as Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The absence of authentication lowers the barrier to entry for attackers significantly, transforming what might otherwise be a low-severity issue into a high-risk vector for widespread compromise. In many web applications, XSS vulnerabilities are often gated behind login pages or require specific user roles, thereby limiting their exploitability. However, in this instance, the attack surface is exposed publicly through endpoints that handle product data, customer inquiries, or administrative settings within the B2BKing ecosystem. The attacker can inject scripts into fields such as product descriptions, contact forms, or configuration parameters that are rendered on public-facing pages without adequate encoding of special characters like angle brackets, ampersands, and quotes.

The operational impact of this vulnerability is severe and multifaceted. Once successfully exploited, the injected JavaScript executes in the victim's browser with the same privileges as legitimate application scripts. This enables attackers to perform session hijacking by stealing cookies or authentication tokens if they are not properly secured with HttpOnly flags. It also facilitates account takeover attacks where an attacker can impersonate a legitimate user or administrator. Furthermore, this vulnerability allows for defacement of web pages, redirection of users to malicious sites hosting malware or phishing content, and the harvesting of sensitive information such as personal data entered into forms on the compromised site. In a B2B context involving wholesale transactions and customer relationships, the erosion of trust due to visible compromise can have substantial business repercussions including loss of client confidence and potential regulatory penalties under data protection laws like GDPR if personal data is exfiltrated.

This attack vector maps directly to several techniques within the MITRE ATT&CK framework for web applications. Specifically, it corresponds to T1059 which covers Command and Scripting Interpretation via JavaScript execution in a browser context. It also relates to T1204 User Execution if the payload relies on social engineering tactics such as phishing links sent to users who then click them, leading to script execution upon visiting the compromised page. The unauthenticated nature of the exploit places it firmly within the initial access phase of an attack lifecycle, allowing adversaries to establish a foothold in the web application environment with minimal effort and no prior reconnaissance or credential theft required beyond identifying vulnerable input fields.

Mitigation strategies must address both immediate remediation and long-term security posture improvements. The primary solution is to upgrade the B2BKing Premium plugin to version 5.6.08 or later where this vulnerability has been patched by implementing proper output encoding and input validation mechanisms. Developers should ensure that all user-supplied data is escaped using context-appropriate methods such as HTML entity encoding for content inserted into HTML bodies, attribute value escaping for attributes, and JavaScript string escaping when inserting data into script blocks. Additionally, implementing a Content Security Policy (CSP) can significantly mitigate the impact of XSS attacks by restricting the sources from which scripts are allowed to load and execute, thereby preventing inline script execution even if injection occurs. Web Application Firewalls should also be configured with rulesets capable of detecting and blocking common XSS patterns in HTTP requests as an additional layer of defense while patches are being deployed across affected systems.

Responsible

Patchstack

Reservation

07/27/2026

Disclosure

08/20/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

low

Sources

Want to know what is going to be exploited?

We predict KEV entries!