Vulnerabilities in pkg:npm/altcha-lib
PACKAGECVE-2025-68113 is a MODERATE (CVSS 6.5) altcha proof-of-work vulnerable to challenge vulnerability (CWE-115: Misinterpretation of Input) affecting Altcha lib libraries in the npm ecosystem. The issue involves altcha proof-of-work vulnerable to challenge splicing and replay. Remediation is available by upgrading affected packages to version 1.4.1, 1.3.1, 1.0.0, 1.3.0.
pkg:npm/altcha-lib
Vulnerability advisories affecting package pkg:npm/altcha-lib. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6gvq-jcmp-8959 | CVE-2025-68113 | MODERATE | ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay |
CVE-2025-68113 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).
How to Fix CVE-2025-68113
To remediate this vulnerability, upgrade all affected Altcha lib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install altcha-lib@1.4.1
Upgrade altcha-org/altcha to 1.3.1
Upgrade github.com/altcha-org/altcha-lib-go to 1.0.0
<dependency>
<groupId>org.altcha</groupId>
<artifactId>altcha</artifactId>
<version>1.3.0</version>
</dependency>
Upgrade altcha to 1.0.0
pip install altcha>=1.0.0
Upgrade altcha to 1.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls altcha-lib
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-68113, inspect your project dependencies using npm:
npm ls altcha-lib
Analyze the terminal output to locate any version of Altcha lib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.1), your application is affected.
Note: The npm ls altcha-lib 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-115: Misinterpretation of Input, where the product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion. In Altcha lib, 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
CVE-2025-68113 Affected Altcha lib Versions
7 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
altcha-lib
|
npm |
< 1.4.1
|
1.4.1
|
|
altcha-org/altcha
|
Packagist |
< 1.3.1
|
1.3.1
|
|
github.com/altcha-org/altcha-lib-go
|
Go |
< 1.0.0
|
1.0.0
|
|
org.altcha:altcha
|
Maven |
< 1.3.0
|
1.3.0
|
|
altcha
|
RubyGems |
< 1.0.0
|
1.0.0
|
|
altcha
|
PyPI |
< 1.0.0
|
1.0.0
|
|
altcha
|
Hex |
< 1.0.0
|
1.0.0
|
References
Frequently Asked Questions
What is CVE-2025-68113?
Which Altcha lib versions are affected?
What version fixes CVE-2025-68113?
Is altcha-lib affected?
Is altcha-org/altcha affected?
What is the CVSS score of CVE-2025-68113?
What CWE is associated with CVE-2025-68113?
How can I check npm dependencies for CVE-2025-68113?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6gvq-jcmp-8959",
"modified" : "2025-12-20T02:32:17Z",
"published" : "2025-12-16T00:43:52Z",
"aliases" : [ "CVE-2025-68113" ],
"summary" : "ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay",
"details" : "### Impact\n\nA cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions.\n\nThe vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity. \n\n### Patches\n\nThis issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation.\n\nUsers are advised to upgrade to patched versions.\n\n### Workarounds\n\nAs a mitigation, implementations may append a delimiter to the end of the `salt` value prior to HMAC computation (for example, `<salt>?expires=<time>&`). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "altcha-lib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "altcha-org/altcha"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/altcha-org/altcha-lib-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.altcha:altcha"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "altcha"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "altcha"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "altcha"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib/security/advisories/GHSA-6gvq-jcmp-8959"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68113"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-ex/commit/09b2bad466ad0338a5b24245380950ea9918333e"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-go/commit/4a5610745ef79895a67bac858b2e4f291c2614b8"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-java/commit/69277651fdd6418ae10bf3a088901506f9c62114"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-php/commit/9e9e70c864a9db960d071c77c778be0c9ff1a4d0"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-rb/commit/4fd7b64cbbfc713f3ca4e066c2dd466e3b8d359b"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib/commit/cb95d83a8d08e273b6be15e48988e7eaf60d5c08"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/altcha-org/altcha-lib"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-java/releases/tag/v1.3.0"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib-php/releases/tag/v1.3.1"
}, {
"type" : "WEB",
"url" : "https://github.com/altcha-org/altcha-lib/releases/tag/1.4.1"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/altcha/CVE-2025-68113.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-115", "CWE-347" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-16T00:43:52Z",
"nvd_published_at" : "2025-12-16T01:15:53Z"
}
}