
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
@sitecore-marketplace-sdk/xmc
Advanced tools
The `xmc` package extends the Client SDK and provides type-safe interfaces for interacting with the following Sitecore XM Cloud APIs: - [Authoring and Management GraphQL API](https://doc.sitecore.com/xmc/en/developers/xm-cloud/sitecore-authoring-and-man
xmc packageThe xmc package extends the Client SDK and provides type-safe interfaces for interacting with the following Sitecore XM Cloud APIs:
node --version command.npm --version command.npm install @sitecore-marketplace-sdk/xmc
Before you use queries or mutations, you must initialize the XMC module.
XMC and adding it to config:// utils/hooks/useMarketplaceClient.ts
import { XMC } from '@sitecore-marketplace-sdk/xmc';
// ...
const config = {
// ...
modules: [XMC] // Extend Client SDK with `XMC`
};
Use the query method to make one-off data requests and live subscriptions. Pass a value to the method depending on the data you want to retrieve. For examples:
'xmc.sites.listSites' to retrieve a list of sites:client.query("xmc.sites.listSites", {
params: {
query: {
sitecoreContextId,
},
},
}).then((res) => {
console.log(
"Success retrieving xmc.sites.listSites:",
res.data
);
}).catch((error) => {
console.error(
"Error retrieving xmc.sites.listSites:",
error
);
});
'xmc.pages.retrievePage' to retrieve information about a specific page:client.query("xmc.pages.retrievePage", {
params: {
path: {
pageId,
},
query: {
site,
sitecoreContextId,
language,
},
},
}).then((res) => {
console.log(
"Success retrieving xmc.pages.retrievePage:",
res.data
);
}).catch((error) => {
console.error(
"Error retrieving xmc.pages.retrievePage:",
error
);
});
For an overview of all the possible values, refer to the QueryMap interface.
Use the mutate method to trigger changes in Sitecore (the host). Pass a value to the method depending on the change you want to make.
For example, to open a different page in the XM Cloud Page builder in response to some other action:
const openDifferentPage = () => {
client?.mutate("pages.context", {
params: {
itemId: "<ID_OF_NEW_PAGE>",
},
});
};
For an overview of all the possible values, refer to the MutationMap interface.
[!NOTE] Behind the scenes, the Host SDK (integrated via the internal
corepackage) attaches the required user token and performs the HTTP request on behalf of the Marketplace app (the client).
For more information, refer to the reference documentation in the /docs folder.
This package is part of the Sitecore Marketplace SDK, licensed under the Apache 2.0 License. Refer to the LICENSE file in the repository root.
The client package is actively maintained as part of the Sitecore Marketplace SDK.
FAQs
The `xmc` package extends the Client SDK and provides type-safe interfaces for interacting with the following Sitecore XM Cloud APIs: - [Authoring and Management GraphQL API](https://doc.sitecore.com/xmc/en/developers/xm-cloud/sitecore-authoring-and-man
We found that @sitecore-marketplace-sdk/xmc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.