{"items":[{"id":"NVI-00017920","kind":"vulnerability","title":"ApostropheCMS: GET /api/v1/@apostrophecms/page/:id bypasses viewRole restriction and exposes viewPermission-gated fields to lower-privileged users","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-vh56-5m88-39rq","CVE-2026-112957"],"plain_summary":"OSV carries this publisher advisory for apostrophe. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.34.0 for apostrophe. Confirm the publisher’s latest guidance.","source_ids":["sr-76d89abbda82bcd67eeb127005cc237d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-76d89abbda82bcd67eeb127005cc237d","url":"https://github.com/advisories/GHSA-vh56-5m88-39rq","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-vh56-5m88-39rq","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-11-07T00:52:38.227Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-76d89abbda82bcd67eeb127005cc237d"],"technology":"apostrophe","known_exclusions":[],"conditions_summary":"### Summary\nThe `getOne` REST endpoint for pages does not apply `viewRole` type-level restrictions\nor `viewPermission` field-level redaction. An editor-level user who knows a document\n`_id` can read the full content of admin-only pages and their privileged fields, while\nthe `getAll` endpoint correctly enforces both restrictions.\n\n### Details\n**Finding 3 — viewRole bypass:**\n`modules/@apostrophecms/page/index.js` exposes `getRestQuery(req, omitPermissionCheck =\nfalse)`. The `getAll` path calls `publicApiCheckAsync` and threads the full query builder\npipeline including `viewRole` filtering. The `getOne` path uses a divergent code path\nthat skips this pipeline.\n\nA page type declared with `viewRole: 'admin'` is inaccessible via `GET\n/api/v1/@apostrophecms/page?type=secretPage` (returns 403 to an editor) but is fully\nreturned by `GET /api/v1/@apostrophecms/page/:id:en:published` to the same editor.\n\n**Finding 4 — viewPermission field leak:**\nFields decorated with `viewPermission: { action: 'edit', type: '@apostrophecms/page' }`\nare stripped by `removeForbiddenFields` in the `getAll` path but are returned verbatim\nin `getOne`. An editor who knows any document `_id` can read all\n`viewPerm","public_affected_ranges":["SEMVER: introduced 0; fixed 4.34.0"]}],"null_published_at":"2026-11-07T00:57:04.326Z","source_updated_at":"2026-10-21T17:28:22.096Z","source_disclosed_at":"2026-10-21T17:15:21.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-07T00:52:38.227Z"}],"next_cursor":null,"snapshot_revision":"44693"}