Advisory

GHSA-5m22-7pfq-vp65

Also known as: CVE-2026-113649

Summary

ApostropheCMS: Import API bypasses publication roles for protected content

Details

Review scope and evidence limits

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

Release tag reviewed: @apostrophecms/[email protected], 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:

Coordination

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-21 17:03 UTC
Modified
2026-10-21 17:15 UTC

Affected packages and fixes

@apostrophecms/import-export

npm · All systems

Affected

  • introduced 0, fixed 3.7.1 (semver)

Fixed versions

3.7.1

Fix

apostrophe

npm · All systems

Affected

  • introduced 0, fixed 4.34.0 (semver)

Fixed versions

4.34.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences