GHSA-9gjv-jvm7-vv2v: Gramps Web API Private Sub-Object Data Vulnerability

MODERATE
CWE-200
Published
Advisory Summary

GHSA-9gjv-jvm7-vv2v is a MODERATE private sub-object data vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Gramps Web API libraries in the PyPI ecosystem. The issue involves private sub-object data in non-private objects exposed to guest users. Remediation is available by upgrading affected packages to version 3.11.0.

GHSA-9gjv-jvm7-vv2v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9gjv-jvm7-vv2v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Gramps Web API
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-9gjv-jvm7-vv2v

To remediate this vulnerability, upgrade all affected Gramps Web API dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gramps-webapi fixed: 3.11.0
pip install gramps-webapi>=3.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show gramps-webapi

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-9gjv-jvm7-vv2v, inspect your installed packages using pip:

pip show gramps-webapi

Analyze the terminal output to locate any version of Gramps Web API in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.11.0), your application is affected.

Note: The pip show gramps-webapi command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Gramps Web API, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary Users with the **Guest** role could receive private sub-object data (e.g. private alternate names, private addresses, private note/citation/media handles) through list API endpoints such as `GET /api/people/`, `GET /api/places/`, `GET /api/events/`, and all other object list endpoints. **This does not expose objects (people, places, events, …) that are themselves marked private.** Top-level private objects are correctly excluded from all responses. Only sub-object data attached to otherwise-public objects is affected. ## Affected Versions All versions of Gramps Web API prior to the fix. ## Root Cause The vulnerability originates from the behaviour of `PrivateProxyDb.iter_*()` in **Gramps core**. The `ProxyDbBase.__iter_object()` helper, which backs all `iter_*()` methods in `PrivateProxyDb`, correctly filters out top-level private objects but returns the remaining objects **unsanitized** — i.e. without stripping private sub-object references. In contrast, `PrivateProxyDb.get_*_from_handle()` does call the appropriate `sanitize_*()` function. Gramps Web API's `ModifiedPrivateProxyDb` (which wraps the raw database for non-admin users) inherited this behaviour without override. The same issue affects Gramps desktop features that consume `iter_*()` output: reports and exports generated via Gramps desktop using `PrivateProxyDb` may also include private sub-object data that should have been stripped. ## Conditions Required **This issue only affects trees in which sub-objects have been explicitly marked private in Gramps desktop.** The Gramps Web frontend UI does not expose controls for setting the private flag on sub-objects (alternate names, addresses, notes, citations, media references, event references, etc.). In practice, such flags are set in Gramps desktop and then synced or imported into Gramps Web. ## Impact When the conditions above are met, a user with the Guest role querying any list endpoint receives: - **Full content** of private embedded sub-objects on people, such as alternate names (first name, surname, etc.) and addresses (street, city, etc.). - **Handles referencing** private notes, citations, and media attached to places, events, sources, and other objects. These reveal the *existence* of private linked objects but not their content; fetching those objects by handle is correctly blocked by the proxy. ## Fix `ModifiedPrivateProxyDb` now overrides all `iter_*()` object methods to check `obj.get_privacy()` directly on the already-loaded object (eliminating the redundant per-object refetch) and to call the appropriate `sanitize_*()` function before yielding each object. This is consistent with the behaviour of `get_*_from_handle()` in `PrivateProxyDb`.

GHSA-9gjv-jvm7-vv2v Affected Gramps Web API Versions

1 component(s)
Fixed Versions:
3.11.0
Product / Package Ecosystem Affected Versions Fixed Version
gramps-webapi
PyPI
< 3.11.0
3.11.0

References

Frequently Asked Questions

What is GHSA-9gjv-jvm7-vv2v?
GHSA-9gjv-jvm7-vv2v is a security vulnerability in Gramps Web API involving Private Sub-Object Data in Non-Private Objects Exposed to Guest Users under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Gramps Web API versions are affected?
Affected versions include releases prior to 3.11.0 across affected packages: gramps-webapi.
What version fixes GHSA-9gjv-jvm7-vv2v?
Upgrading to 3.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gramps-webapi affected?
Yes, gramps-webapi is affected in releases prior to 3.11.0. Upgrade your dependency to 3.11.0 or later.
What CWE is associated with GHSA-9gjv-jvm7-vv2v?
GHSA-9gjv-jvm7-vv2v is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for GHSA-9gjv-jvm7-vv2v?
Run the dependency tree command: 'pip show gramps-webapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9gjv-jvm7-vv2v",
  "modified" : "2026-04-09T20:28:40Z",
  "published" : "2026-04-09T20:28:40Z",
  "aliases" : [ ],
  "summary" : "Gramps Web API: Private Sub-Object Data in Non-Private Objects Exposed to Guest Users",
  "details" : "## Summary\n\nUsers with the **Guest** role could receive private sub-object data (e.g. private alternate names, private addresses, private note/citation/media handles) through list API endpoints such as `GET /api/people/`, `GET /api/places/`, `GET /api/events/`, and all other object list endpoints.\n\n**This does not expose objects (people, places, events, …) that are themselves marked private.** Top-level private objects are correctly excluded from all responses. Only sub-object data attached to otherwise-public objects is affected.\n\n## Affected Versions\n\nAll versions of Gramps Web API prior to the fix.\n\n## Root Cause\n\nThe vulnerability originates from the behaviour of `PrivateProxyDb.iter_*()` in **Gramps core**. The `ProxyDbBase.__iter_object()` helper, which backs all `iter_*()` methods in `PrivateProxyDb`, correctly filters out top-level private objects but returns the remaining objects **unsanitized** — i.e. without stripping private sub-object references. In contrast, `PrivateProxyDb.get_*_from_handle()` does call the appropriate `sanitize_*()` function.\n\nGramps Web API's `ModifiedPrivateProxyDb` (which wraps the raw database for non-admin users) inherited this behaviour without override.\n\nThe same issue affects Gramps desktop features that consume `iter_*()` output: reports and exports generated via Gramps desktop using `PrivateProxyDb` may also include private sub-object data that should have been stripped.\n\n## Conditions Required\n\n**This issue only affects trees in which sub-objects have been explicitly marked private in Gramps desktop.** The Gramps Web frontend UI does not expose controls for setting the private flag on sub-objects (alternate names, addresses, notes,\ncitations, media references, event references, etc.). In practice, such flags are set in Gramps desktop and then synced or imported into Gramps Web.\n\n## Impact\n\nWhen the conditions above are met, a user with the Guest role querying any list endpoint receives:\n\n- **Full content** of private embedded sub-objects on people, such as alternate  names (first name, surname, etc.) and addresses (street, city, etc.).\n- **Handles referencing** private notes, citations, and media attached to places,  events, sources, and other objects. These reveal the *existence* of private\n  linked objects but not their content; fetching those objects by handle is  correctly blocked by the proxy.\n\n## Fix\n\n`ModifiedPrivateProxyDb` now overrides all `iter_*()` object methods to check `obj.get_privacy()` directly on the already-loaded object (eliminating the redundant per-object refetch) and to call the appropriate `sanitize_*()` function before yielding each object. This is consistent with the behaviour of `get_*_from_handle()` in `PrivateProxyDb`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gramps-webapi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gramps-project/gramps-web-api/security/advisories/GHSA-9gjv-jvm7-vv2v"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gramps-project/gramps-web-api"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gramps-project/gramps-web-api/releases/tag/v3.11.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-09T20:28:40Z",
    "nvd_published_at" : null
  }
}