Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@lodestar/config

Latest version: v1.52.0-dev.4996a91d93

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: joshdougall, kalambet, matthewkeil, wemeetagain
1,438 Stars
503 Forks
79 Versions
32.6K Downloads
TypeScript Repo language

Scan summary

@lodestar/config was last scanned on 23 Nov 2026 at version 1.52.0-dev.4996a91d93. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 79 versions; the latest 5 were published on 23 Nov 2026.
  • Findings: No rules fired in version 1.52.0-dev.4996a91d93.
  • Downloads: 32,611 downloads.

Versions

79 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.52.0-dev.4996a91d93 LATEST 23 Nov 2026 No rules fired
1.52.0-dev.b1d1e990d9 23 Nov 2026 No rules fired
1.52.0-dev.7dd7051260 23 Nov 2026 No rules fired
1.52.0-dev.1f4a364fc5 23 Nov 2026 Not shown
1.52.0-dev.0f379f3b22 23 Nov 2026 Not shown

No rules fired in 1.52.0-dev.4996a91d93

Findings

Findings for v1.52.0-dev.4996a91d93. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.52.0-dev.4996a91d93; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

lodestar-config

npm License Eth Consensus Spec v1.5.0 ES Version Node Version

This package is part of ChainSafe's Lodestar project

Lodestar defines all network configuration variables defined in the Ethereum Consensus spec. This tooling may be used to configure testnets, ingest mainnet/testnet config variables, or be used in downstream Lodestar libraries.

Installation

npm install @lodestar/config

Usage

The Lodestar config package contains several interfaces used in downstream Lodestar libraries:

  • ChainConfig - Typescript interface, Default (mainnet) values, and matching SSZ helper type object
  • ForkConfig - A fork helper object that's structured around the fork schedule
  • ChainForkConfig A wrapper object that implements ChainConfig and ForkConfig
  • CachedGenesis - A helper object for caching domains (which relies on the genesis validators root)
  • BeaconConfig - A wrapper object that implements all above interfaces
Chain config

The Ethereum consensus spec defines a bunch of variables that may be easily configured per testnet. These include the GENESIS_TIME, SLOT_DURATION_MS, and various *_FORK_EPOCHs, *_FORK_VERSIONs, etc. The Lodestar config package exports the ChainConfig interface and matching ChainConfig SSZ type, which include all of these variables, named verbatim from the spec.

import {ChainConfig} from "@lodestar/config";
import {chainConfig} from "@lodestar/config/default";

let config: ChainConfig = chainConfig;
const x: number = config.SLOT_DURATION_MS;

Mainnet default values are available as a singleton ChainConfig under the default import path.

import {chainConfig} from "@lodestar/config/default";

chainConfig.SLOT_DURATION_MS === 12000;

There are also utility functions to help create a ChainConfig from unknown input and partial configs.

import {createChainConfig, ChainConfig, chainConfigFromJson} from "@lodestar/config";

// example config
let chainConfigObj: Record<string, unknown> = {
  // phase0
  MIN_PER_EPOCH_CHURN_LIMIT: 4,
  CHURN_LIMIT_QUOTIENT: 65536,
  MIN_GENESIS_ACTIVE_VALIDATOR_COUNT: 128,
  MIN_GENESIS_TIME: 1621504614,
  ETH1_FOLLOW_DISTANCE: 2048,
  SECONDS_PER_ETH1_BLOCK: 14,
  DEPOSIT_CHAIN_ID: 5,
  DEPOSIT_NETWORK_ID: 5,
  DEPOSIT_CONTRACT_ADDRESS: "0x2cc88381fe23027743c1f85512bffb383acca7c7",
  EJECTION_BALANCE: 16000000000,
  GENESIS_FORK_VERSION: "0x00004811",
  GENESIS_DELAY: 1100642,
  SLOT_DURATION_MS: 12000,
  MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256,
  SHARD_COMMITTEE_PERIOD: 256,

  // altair
  INACTIVITY_SCORE_BIAS: 4,
  INACTIVITY_SCORE_RECOVERY_RATE: 16,
  ALTAIR_FORK_VERSION: "0x01004811",
  ALTAIR_FORK_EPOCH: 10,
};

const partialChainConfig: Partial<ChainConfig> = chainConfigFromJson(chainConfigObj);

// Fill in the missing values with mainnet default values
const chainConfig: ChainConfig = createChainConfig(partialChainConfig);
Fork config

The variables described in the spec can be used to assemble a more structured 'fork schedule'. This info is organized as ForkConfig in the Lodestar config package. In practice, the ChainConfig and ForkConfig are usually combined as a ChainForkConfig.

A ForkConfig provides methods to select the fork info, fork name, fork version, or fork ssz types given a slot.

import {GENESIS_SLOT} from "@lodestar/params";
import {createChainForkConfig, ChainForkConfig} from "@lodestar/config";
import {config as chainConfig} from "@lodestar/config/default";

const config: ChainForkConfig = createChainForkConfig(chainConfig);

const version = config.getForkVersion(GENESIS_SLOT);
Cached genesis

For signing Ethereum consensus objects, a cryptographic "domain" is computed and mixed into the signed message. This domain separates signatures made for the Ethereum mainnet from testnets or other instances of the chain. The CachedGenesis interface is used to provide a cache for this purpose. Practically, the domain rarely changes, only per-fork, and so the value can be easily cached. Since the genesis validators root is part of the domain, it is required input to instantiate an CachedGenesis. In practice, the ChainForkConfig and CachedGenesis are usually combined as a BeaconConfig. This is the 'highest level' object exported by the Lodestar config library.

import {DOMAIN_DEPOSIT, GENESIS_SLOT} from "@lodestar/params";
import {createBeaconConfig, BeaconConfig} from "@lodestar/config";
import {config as chainConfig} from "@lodestar/config/default";

// dummy test root
let genesisValidatorsRoot: Uint8Array = new Uint8Array();

const config: BeaconConfig = createBeaconConfig(chainConfig, genesisValidatorsRoot);

License

Apache-2.0 ChainSafe Systems

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @lodestar/config

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229