Quick answers
- Is CVE-2019-8903 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2019-8903 being exploited in the wild.
- How severe is CVE-2019-8903?
- Low severity, with a CVSS score of 3, published 20 February 2019.
- Which products and versions are affected?
- total.js (npm) SEMVER:introduced=0,fixed=3.2.3.
- Is there a fix for CVE-2019-8903?
- Yes. total.js (npm): upgrade to 3.2.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-8903 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2019-8903?
- Check whether you run total.js (npm) or Total.js Framework at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- total.js (npm): upgrade to 3.2.3 or later
npm install total.js@3.2.3
Technical details
A path traversal vulnerability exists in total.js (specifically within index.js) due to insufficient sanitization of URL pathnames. An unauthenticated remote attacker can use relative path sequences (e.g., '../') or URL-encoded equivalents (e.g., '%2e%2e%2f') to bypass directory restrictions and access files outside the '/public' folder. While the exploit is limited to specific file extensions (such as .js, .json, .txt, and .xml), it still allows for significant information disclosure. The issue was addressed by improving the validation logic in the request handling component to detect and block these sequences. Fixes are available in version 3.2.3 and various backported patches for older major versions.
Affected products
- Total.js total.js < 3.2.3
Identifiers
- CVE-2019-8903
- GHSA-3q32-j57w-q4w7
Timeline
- 2019-02-18: advisory: NVD published CVE-2019-8903
- 2019-02-20: advisory: GitHub Advisory GHSA-3q32-j57w-q4w7 published
- 2019-02-18: patched: Fixes committed to totaljs/framework repository
References
- https://github.com/totaljs/framework/commit/c37cafbf3e379a98db71c1125533d1e8d5b5aef7
- https://github.com/totaljs/framework/commit/de16238d13848149f5d1dae51f54e397a525932b
- https://blog.certimetergroup.com/it/articolo/security/total.js-directory-traversal-cve-2019-8903
- https://github.com/totaljs/framework
- https://www.npmjs.com/advisories/1026