---
id: "CVE-2026-113649"
kind: "vulnerability"
aliases: ["CVE-2026-113649", "GHSA-5m22-7pfq-vp65"]
title: "ApostropheCMS: Import API bypasses publication roles for protected content"
severity: "medium"
cvss: 6.5
epss: 0.002199999988079071
exploited: false
status: "open"
category: "package"
products: [{"name": "@apostrophecms/import-export", "fixed": ["3.7.1"], "affected": "< 3.7.1", "ecosystem": "npm"}, {"name": "apostrophe", "fixed": ["4.34.0"], "affected": "< 4.34.0", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["apostrophecms", "cms", "cwe-862", "node", "npm", "package"]
not_affected_if: ["default-config", "no-custom-publish-role", "no-import-export-usage"]
published_at: "2026-10-20T17:17:35+00:00"
first_seen_at: "2026-10-23T19:11:32+00:00"
updated_at: "2026-10-23T21:57:20+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-5m22-7pfq-vp65", "first_seen_at": "2026-10-23T19:11:32+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113649", "first_seen_at": "2026-10-23T21:57:20+00:00"}]
---

# ApostropheCMS: Import API bypasses publication roles for protected content

The ApostropheCMS Import API writes published variants of content directly without checking the publish permission, so a user who can only edit a content type can create, replace, or remove its published content when publication is restricted to a stronger role. An attacker with import access gets public-state changes they should not be allowed to make.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@apostrophecms/import-export affected < 3.7.1 fixed 3.7.1
- npm:apostrophe affected < 4.34.0 fixed 4.34.0

## How to check

Check whether @apostrophecms/import-export in your package.json or lockfile is below 3.7.1, and whether apostrophe is below 4.34.0.
If you use import, check whether any content type sets publishRole stricter than editRole and whether non-admin users have import access.

## Fix

Upgrade @apostrophecms/import-export to 3.7.1 and apostrophe to 4.34.0.
Until then, restrict import/export permissions to trusted admins only.

## Timeline

- 2026-10-23T19:11:32+00:00 ghsa https://github.com/advisories/GHSA-5m22-7pfq-vp65
- 2026-10-23T21:57:20+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-113649

## From the sources

## Review scope and evidence limits

Package: @apostrophecms/import-export, version 3.7.0.

Release tag reviewed: @apostrophecms/import-export@3.7.0, commit 9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce (September 30, 2026).

Current main reviewed: 5ce3732be0ebdebb4db0f8ef160c81e8671157e6.

The importer, gzip extractor, import permission gate, and core permission implementation have no differences between that release tag and the reviewed main. This follow-up is a static remediation review. We have not repeated the original end-to-end reproductions against the latest release or tested a deployed site. Current exploitability and impact therefore still require maintainer validation; the observations below establish that the reported security checks remain absent in public source. The original emailed PDF contains the original reproduction material. 

## Import API bypasses publication roles for protected content

The import gate in canImportOrExport() checks the type's import configuration and view permission. The write helpers then call document-manager insert/update directly, including operations on published variants. We did not find the normal publish permission check or beforePublish transition in these helpers. Core permissions intentionally distinguish editRole and publishRole, and the ordinary publication lifecycle enforces that distinction.

The reported security boundary is a content type that an editor may edit but whose publication is reserved for a stronger role. Direct public-state changes through import must enforce the same publication authority. The original report describes unauthorized creation, replacement, or removal of published content under that configuration.

Suggested remediation: centralize authorization for import writes; require publish permission for every non-autopublished published variant, authorize each concrete target, and preflight the complete import before persistent changes. Preserve authorized draft imports and the intended behavior of autopublished types.

Source references:
- [Import write helpers](https://github.com/apostrophecms/apostrophe/blob/5ce3732be0ebdebb4db0f8ef160c81e8671157e6/packages/import-export/lib/methods/import.js)
- [Import permission gate](https://github.com/apostrophecms/apostrophe/blob/5ce3732be0ebdebb4db0f8ef160c81e8671157e6/packages/import-export/lib/methods/index.js)
- [Core role distinctions](https://github.com/apostrophecms/apostrophe/blob/5ce3732be0ebdebb4db0f8ef160c81e8671157e6/packages/apostrophe/modules/%40apostrophecms/permission/index.js)
- [Core insert/update/publication permission hooks](https://github.com/apostrophecms/apostrophe/blob/5ce3732be0ebdebb4db0f8ef160c81e8671157e6/packages/apostrophe/modules/%40apostrophecms/doc/index.js)

## Coordination

Vivek R / Winfunc
Original reporting team: Mufeed VH / Winfunc

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
