CVE-2026-103035: Nilsteampassnet/TeamPass TeamPass Folder Re-parenting Authorization Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-66q9-mxf2-xqw6
CVSS 8.3
CWE-639 CWE-862
Published
Advisory Summary

CVE-2026-103035 is a HIGH (CVSS 8.3) teampass folder re-parenting authorization bypass vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Nilsteampassnet/TeamPass libraries in the Packagist ecosystem. The issue involves teampass folder re-parenting authorization bypass. Remediation is available by upgrading affected packages to version 3.2.2.0.

CVE-2026-103035 at a Glance

CVE Identifier CVE-2026-103035
GHSA Identifier GHSA-66q9-mxf2-xqw6
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Nilsteampassnet/TeamPass
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-103035

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

nilsteampassnet/TeamPass fixed: 3.2.2.0
Upgrade nilsteampassnet/TeamPass to 3.2.2.0
Verify Direct and Transitive Dependencies

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

inspect dependencies for nilsteampassnet/TeamPass

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-103035, inspect your project dependencies for Nilsteampassnet/TeamPass:

inspect dependencies for nilsteampassnet/TeamPass

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Nilsteampassnet/TeamPass, 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 Missing authorization in the update_folder action: any authenticated non-read-only user can rename, re-parent and convert to personal any folder in the instance, moving another team's credential subtree into their own personal space and removing it from the organization. Confirmed at HEAD 2f271cdd (3.2.1.1), and present at 3.1.3.1 and 3.1.7.6. ## The defect The folder-management endpoint dispatches an update_folder action that renames and re-parents a folder. Unlike its sibling actions in the same file, it never checks the edited folder id or the submitted parent id against the caller's accessible-folder set, and the file itself performs no session/authorization gate at all. By pointing the new parent at their own personal folder, an authenticated low-privilege user takes ownership of any folder in the instance. app/sources/folders.queries.php: - The file never calls the session/authorization helpers: a grep for checkSession and userAccessPage across the whole file returns zero hits. - case 'update_folder' (lines 294-662) contains no reference to the caller's user-accessible_folders set. The only access-related logic is the personal-folder computation at lines 428-468 and the guard at line 503, which short-circuits on `(int) $isPersonal === 1`. - The sibling actions do carry the check: case 'add_folder' validates against user-accessible_folders at line 743, case 'delete_folders' at line 904, and case 'copy_folder' applies the equivalent parent check. So update_folder is the one folder-mutating action in the file without an authorization predicate on either the target folder id or the new parent id. ## Attacker model and trace An authenticated TeamPass user who is not read-only (no administrative role required). The attacker submits update_folder with the victim folder's id and a parentId pointing at their own personal folder. Because the new parent is personal, the personal-folder computation sets $isPersonal = 1, which satisfies the line 503 guard, and the update writes the new parent and personal_folder = 1 for the target folder. Consequences: the stolen subtree is added to the attacker's accessible set on their next login, so the item list renders for them, and do_items_list_in_folder exposes the plaintext label, login, url, email and description of every credential in that subtree (item passwords stay sharekey-protected, hence C:L). Because the folder is now flagged personal, it disappears from the organization view for everyone else including administrators (the admin listing selects only personal_folder = 0), so this is also a denial of access to the real owners. ## Verification Source-verified at HEAD: no session/authorization helper anywhere in the file; the update_folder case contains no accessible-folders predicate while add_folder, delete_folders and copy_folder do; the personal-folder short-circuit at line 503. A live TeamPass instance was not stood up. Secondary (needs a live confirmation before filing): there appears to be an unauthenticated variant. filter_input(INPUT_POST, 'key') returns null when omitted and $session->get('key') is null on a cookie-less session, so the null !== null comparison fails open; encryptClientServer is only set in public/index.php, so prepareExchangedData takes the plaintext-JSON branch. If that holds on a live instance this rises toward 9.4. The sibling actions fail closed on the anonymous path; only update_folder fails open. Please verify live, or report the authenticated variant alone (which stands on the source reading). ## Suggested fix In the update_folder case, verify that both the target folder id and the submitted parentId are members of the caller's user-accessible_folders set (mirroring add_folder and delete_folders) before applying the update, and reject a re-parent that would flip personal_folder for a folder the caller does not own. Adding the standard session/authorization gate to folders.queries.php as a whole is the more durable fix. Note items.queries.php has a second, identically named update_folder case that does perform the accessible-folders check, but that one can only edit title/complexity; the unguarded copy in folders.queries.php is the one the UI calls for re-parenting. ## Tooling AI assistance was used while investigating, but it was confirmed at HEAD that folders.queries.php contains no checkSession/userAccessPage call, that the update_folder case (lines 294-662) contains no accessible-folders predicate while add_folder (line 743) and delete_folders (line 904) do, and that the personal-folder short-circuit sits at line 503.

CVE-2026-103035 Affected Nilsteampassnet/TeamPass Versions

1 component(s)
Fixed Versions:
3.2.2.0
Product / Package Ecosystem Affected Versions Fixed Version
nilsteampassnet/TeamPass
Packagist
< 3.2.2.0
3.2.2.0

References

Frequently Asked Questions

What is CVE-2026-103035?
CVE-2026-103035 is a security vulnerability in Nilsteampassnet/TeamPass involving TeamPass folder re-parenting authorization bypass under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Nilsteampassnet/TeamPass versions are affected?
Affected versions include releases prior to 3.2.2.0 across affected packages: nilsteampassnet/TeamPass.
What version fixes CVE-2026-103035?
Upgrading to 3.2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nilsteampassnet/TeamPass affected?
Yes, nilsteampassnet/TeamPass is affected in releases prior to 3.2.2.0. Upgrade your dependency to 3.2.2.0 or later.
What is the CVSS score of CVE-2026-103035?
CVE-2026-103035 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H.
What CWE is associated with CVE-2026-103035?
CVE-2026-103035 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2026-103035?
Run the dependency tree command: 'inspect dependencies for nilsteampassnet/TeamPass'. 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-66q9-mxf2-xqw6",
  "modified" : "2026-11-20T14:45:04Z",
  "published" : "2026-11-20T14:45:04Z",
  "aliases" : [ "CVE-2026-103035" ],
  "summary" : "TeamPass folder re-parenting authorization bypass",
  "details" : "## Summary\n\nMissing authorization in the update_folder action: any authenticated non-read-only user can rename, re-parent and convert to personal any folder in the instance, moving another team's credential subtree into their own personal space and removing it from the organization. Confirmed at HEAD 2f271cdd (3.2.1.1), and present at 3.1.3.1 and 3.1.7.6.\n\n## The defect\n\nThe folder-management endpoint dispatches an update_folder action that renames and re-parents a folder. Unlike its sibling actions in the same file, it never checks the edited folder id or the submitted parent id against the caller's accessible-folder set, and the file itself performs no session/authorization gate at all. By pointing the new parent at their own personal folder, an authenticated low-privilege user takes ownership of any folder in the instance.\n\napp/sources/folders.queries.php:\n- The file never calls the session/authorization helpers: a grep for checkSession and userAccessPage across the whole file returns zero hits.\n- case 'update_folder' (lines 294-662) contains no reference to the caller's user-accessible_folders set. The only access-related logic is the personal-folder computation at lines 428-468 and the guard at line 503, which short-circuits on `(int) $isPersonal === 1`.\n- The sibling actions do carry the check: case 'add_folder' validates against user-accessible_folders at line 743, case 'delete_folders' at line 904, and case 'copy_folder' applies the equivalent parent check.\n\nSo update_folder is the one folder-mutating action in the file without an authorization predicate on either the target folder id or the new parent id.\n\n## Attacker model and trace\n\nAn authenticated TeamPass user who is not read-only (no administrative role required). The attacker submits update_folder with the victim folder's id and a parentId pointing at their own personal folder. Because the new parent is personal, the personal-folder computation sets $isPersonal = 1, which satisfies the line 503 guard, and the update writes the new parent and personal_folder = 1 for the target folder.\n\nConsequences: the stolen subtree is added to the attacker's accessible set on their next login, so the item list renders for them, and do_items_list_in_folder exposes the plaintext label, login, url, email and description of every credential in that subtree (item passwords stay sharekey-protected, hence C:L). Because the folder is now flagged personal, it disappears from the organization view for everyone else including administrators (the admin listing selects only personal_folder = 0), so this is also a denial of access to the real owners.\n\n## Verification\n\nSource-verified at HEAD: no session/authorization helper anywhere in the file; the update_folder case contains no accessible-folders predicate while add_folder, delete_folders and copy_folder do; the personal-folder short-circuit at line 503. A live TeamPass instance was not stood up.\n\nSecondary (needs a live confirmation before filing): there appears to be an unauthenticated variant. filter_input(INPUT_POST, 'key') returns null when omitted and $session->get('key') is null on a cookie-less session, so the null !== null comparison fails open; encryptClientServer is only set in public/index.php, so prepareExchangedData takes the plaintext-JSON branch. If that holds on a live instance this rises toward 9.4. The sibling actions fail closed on the anonymous path; only update_folder fails open. Please verify live, or report the authenticated variant alone (which stands on the source reading).\n\n## Suggested fix\n\nIn the update_folder case, verify that both the target folder id and the submitted parentId are members of the caller's user-accessible_folders set (mirroring add_folder and delete_folders) before applying the update, and reject a re-parent that would flip personal_folder for a folder the caller does not own. Adding the standard session/authorization gate to folders.queries.php as a whole is the more durable fix. Note items.queries.php has a second, identically named update_folder case that does perform the accessible-folders check, but that one can only edit title/complexity; the unguarded copy in folders.queries.php is the one the UI calls for re-parenting.\n\n## Tooling\n\nAI assistance was used while investigating, but it was confirmed at HEAD that folders.queries.php contains no checkSession/userAccessPage call, that the update_folder case (lines 294-662) contains no accessible-folders predicate while add_folder (line 743) and delete_folders (line 904) do, and that the personal-folder short-circuit sits at line 503.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "nilsteampassnet/TeamPass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nilsteampassnet/TeamPass/security/advisories/GHSA-66q9-mxf2-xqw6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-103035"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nilsteampassnet/TeamPass/commit/e022b27f99149995c90a81f83b8e0ae8b48f5a20"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nilsteampassnet/TeamPass"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nilsteampassnet/TeamPass/releases/tag/3.2.1.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639", "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-20T14:45:04Z",
    "nvd_published_at" : "2026-11-19T19:17:16Z"
  }
}