Vulnerabilities in pkg:npm/sublinear-time-solver

PACKAGE
Advisory Identifier: GHSA-xc9g-j69q-37xw
Advisory Summary

CVE-2026-55609 is a HIGH (CVSS 7.1) consciousness-explorer / sublinear-time-solver mcp export_state vulnerability (CWE-73: External Control of File Name or Path) affecting Consciousness explorer libraries in the npm ecosystem. The issue involves consciousness-explorer / sublinear-time-solver mcp export_state has an arbitrary file write. Remediation is available by upgrading affected packages to version 1.1.2, 1.6.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/sublinear-time-solver

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/sublinear-time-solver. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xc9g-j69q-37xw CVE-2026-55609 HIGH consciousness-explorer / sublinear-time-solver MCP export_state has an arbitrary file write
GHSA-gc2j-wpjv-jhrw CVE-2026-7645 MODERATE sublinear-time-solver has a Path Traversal Issue

CVE-2026-55609 at a Glance

CVE Identifier CVE-2026-55609
GHSA Identifier GHSA-xc9g-j69q-37xw
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Consciousness explorer
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.1

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

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

How to Fix CVE-2026-55609

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

consciousness-explorer fixed: 1.1.2
npm install consciousness-explorer@1.1.2
sublinear-time-solver fixed: 1.6.0
npm install sublinear-time-solver@1.6.0
Verify Direct and Transitive Dependencies

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

npm ls consciousness-explorer

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-55609, inspect your project dependencies using npm:

npm ls consciousness-explorer

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

Note: The npm ls consciousness-explorer command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In Consciousness explorer, 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

### Impact An arbitrary file write vulnerability (CWE-73, External Control of File Name or Path) exists in the `consciousness-explorer` component of `sublinear-time-solver`. The MCP `export_state` (and `import_state`) tool accepted a user-supplied `filepath` argument and passed it directly to `fs.writeFileSync` / `fs.readFileSync` without constraining the destination or rejecting path traversal. An attacker able to invoke the MCP tool could write or overwrite any file accessible to the server process (e.g. `~/.ssh/authorized_keys`, application files), leading to integrity loss and potential service disruption. The same sink class was present in the main solver MCP server (`saveVectorToFile` / `loadVectorFromFile`). ### Affected versions - `consciousness-explorer` < 1.1.2 - `sublinear-time-solver` < 1.6.0 - `sublinear` (crates.io) < 0.2.0 ### Patches - `consciousness-explorer@1.1.2` - `sublinear-time-solver@1.6.0` - `sublinear@0.2.0` State/vector files are now confined to a dedicated directory (overridable via `$CONSCIOUSNESS_EXPLORER_STATE_DIR` / `$SUBLINEAR_SOLVER_VECTOR_DIR`), a basename-only contract is enforced (rejecting separators, `..`, NUL/control chars, hidden files, and Windows reserved names), and files are opened with `O_NOFOLLOW | O_CLOEXEC` mode `0o600`. Covered by 14 regression tests in `tests/consciousness/safe-path.test.mjs`. **Breaking change:** callers must now pass a basename, not an absolute path. ### Workarounds Do not expose the MCP server to untrusted clients; restrict `export_state` to trusted local users; run the server under a low-privilege account with a restricted working directory.

CVE-2026-55609 Affected Consciousness explorer Versions

2 component(s)
Fixed Versions:
1.1.21.6.0
Product / Package Ecosystem Affected Versions Fixed Version
consciousness-explorer
npm
< 1.1.2
1.1.2
sublinear-time-solver
npm
< 1.6.0
1.6.0

References

Frequently Asked Questions

What is CVE-2026-55609?
CVE-2026-55609 is a security vulnerability in Consciousness explorer involving consciousness-explorer / sublinear-time-solver MCP export_state has an arbitrary file write under CWE-73: External Control of File Name or Path.
Which Consciousness explorer versions are affected?
Affected versions include releases prior to 1.1.2, 1.6.0 across affected packages: consciousness-explorer, sublinear-time-solver.
What version fixes CVE-2026-55609?
Upgrading to 1.1.2, 1.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is consciousness-explorer affected?
Yes, consciousness-explorer is affected in releases prior to 1.1.2. Upgrade your dependency to 1.1.2 or later.
Is sublinear-time-solver affected?
Yes, sublinear-time-solver is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
What is the CVSS score of CVE-2026-55609?
CVE-2026-55609 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2026-55609?
CVE-2026-55609 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check npm dependencies for CVE-2026-55609?
Run the dependency tree command: 'npm ls consciousness-explorer'. 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-xc9g-j69q-37xw",
  "modified" : "2026-08-25T18:35:32Z",
  "published" : "2026-08-25T18:35:32Z",
  "aliases" : [ "CVE-2026-55609" ],
  "summary" : "consciousness-explorer / sublinear-time-solver MCP export_state has an arbitrary file write",
  "details" : "### Impact\nAn arbitrary file write vulnerability (CWE-73, External Control of File Name or Path) exists in the `consciousness-explorer` component of `sublinear-time-solver`. The MCP `export_state` (and `import_state`) tool accepted a user-supplied `filepath` argument and passed it directly to `fs.writeFileSync` / `fs.readFileSync` without constraining the destination or rejecting path traversal. An attacker able to invoke the MCP tool could write or overwrite any file accessible to the server process (e.g. `~/.ssh/authorized_keys`, application files), leading to integrity loss and potential service disruption.\n\nThe same sink class was present in the main solver MCP server (`saveVectorToFile` / `loadVectorFromFile`).\n\n### Affected versions\n- `consciousness-explorer` < 1.1.2\n- `sublinear-time-solver` < 1.6.0\n- `sublinear` (crates.io) < 0.2.0\n\n### Patches\n- `consciousness-explorer@1.1.2`\n- `sublinear-time-solver@1.6.0`\n- `sublinear@0.2.0`\n\nState/vector files are now confined to a dedicated directory (overridable via `$CONSCIOUSNESS_EXPLORER_STATE_DIR` / `$SUBLINEAR_SOLVER_VECTOR_DIR`), a basename-only contract is enforced (rejecting separators, `..`, NUL/control chars, hidden files, and Windows reserved names), and files are opened with `O_NOFOLLOW | O_CLOEXEC` mode `0o600`. Covered by 14 regression tests in `tests/consciousness/safe-path.test.mjs`.\n\n**Breaking change:** callers must now pass a basename, not an absolute path.\n\n### Workarounds\nDo not expose the MCP server to untrusted clients; restrict `export_state` to trusted local users; run the server under a low-privilege account with a restricted working directory.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "consciousness-explorer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sublinear-time-solver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/security/advisories/GHSA-xc9g-j69q-37xw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/BruceJqs/public_exp/issues/32"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/issues/19"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/pull/20"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/commit/a701296e363192be863e79d788fa268095e3d229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/commit/ea9a212b69e4449ec443fe088a7aec7546f70b4a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ruvnet/sublinear-time-solver"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/sublinear-time-solver/releases/tag/v1.6.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-25T18:35:32Z",
    "nvd_published_at" : null
  }
}