Log date · Sun
Does javascript-obfuscator Pro always use Pro features?
No. Version 5.6.0 falls back locally without Pro features. We test the output, size and string encoding.
Does the Pro entry point guarantee Pro features?
No. In javascript-obfuscator 5.6.0, obfuscatePro falls back to local basic obfuscation when neither vmObfuscation nor parseHtml is enabled. [1] With fixed options and seed, our Pro-entry and local outputs were identical. The Base64 artifact was 2,255 bytes versus 122 bytes for the source, and both test inputs produced the same results.
| Question | Finding |
|---|---|
| Does a successful Pro call prove a Pro feature ran? | No; this output was identical to the local output. |
| Sizes with encoding off and Base64? | 1,155 and 2,255 bytes, respectively. |
| Was the complete sample literal present? | Yes without encoding; no in the Base64 artifact. |
| Did behavior match? | Both inputs produced DEMO-PLAN-120 and DEMO-PLAN-154. |
Release change and experiment scope
Version 5.6.0 was released on 2026-08-23 at 05:17 UTC, two days after 5.5.1 on 2026-08-21. Its notes list two changes: the fallback when no Pro feature is enabled, and improved stringArrayEncoding runtime performance. [1] The versioned documentation says the fallback makes no API request; vmObfuscation or parseHtml selects the Pro path. [2]
We used Node.js 20.19.5 and the locally installed 5.6.0 on our own pricing function, comparing no encoding, Base64, the local entry point and the Pro entry point. We did not call the remote Pro service or benchmark an older release; the results cover this sample and two inputs only.
function quote(quantity) {
return 'DEMO-PLAN-' + (120 + quantity * 17);
}
console.log(quote(0));
console.log(quote(2));We set seed to 42 and stringArrayThreshold to 1, changing only stringArrayEncoding between the two variants. The documentation describes a nonzero seed as a way to obtain repeatable results and the encoding option as controlling how extracted string-array values are encoded. [2] A fixed configuration helps review, though different versions or inputs can still change the artifact.
What the fallback and string check show
The complete results are below. The Pro entry point received an empty API configuration with no Pro feature enabled, yet produced code identical byte for byte to the local result with the same options. This comparison shows why CI cannot use a resolved promise alone as evidence that a Pro feature was applied.
local and Pro-entry outputs identical: true
source | bytes=122 | literal=present | output=DEMO-PLAN-120,DEMO-PLAN-154
no-encoding | bytes=1155 | literal=present | output=DEMO-PLAN-120,DEMO-PLAN-154
base64 | bytes=2255 | literal=absent | output=DEMO-PLAN-120,DEMO-PLAN-154
pro-entry | bytes=2255 | literal=absent | output=DEMO-PLAN-120,DEMO-PLAN-154The unencoded artifact still contains the complete marker. An exact-text search did not find it in the Base64 artifact, but execution still printed the value. This search checks one contiguous literal; it establishes neither that other strings were transformed nor that the artifact is secret. A client must be able to use the values it needs at runtime, so keep shared privileged credentials on a controlled server.
The sizes are actual bytes for this sample, not compressed transfer sizes, and cannot be extrapolated to an application. The release notes announce a runtime improvement but do not provide a rate for our application; measure startup and critical interactions on target devices. Matching two outputs proves only the paths executed, not the complete release bundle.
Recommendations by situation
These are engineering recommendations, not security gains measured by this experiment. Record the intended features, options and version in the build record, and test the actual release artifact.
| Question | Finding |
|---|---|
| A Pro feature is required | Assert the required Pro option before building; verify the remote result and failure handling. |
| Only local obfuscation is required | Use the local entry point explicitly and pin version and configuration. |
| Size or startup cost matters | Compare compressed size, cold startup and critical flows on real releases. |
| A client contains a shared secret | Move it server-side and rotate it; obfuscation is not an access boundary. |
Assertions should express what the project actually requires. For example, a pipeline requiring VM obfuscation should check vmObfuscation rather than accepting parseHtml or any Pro option. The documented hasProFeatures check identifies whether the Pro path is needed; it does not verify that a remote artifact meets your requirements. [2] Test failure handling in a test environment so a local fallback is not mistaken for a successful delivery. Tie the build record to its artifact and identify the configuration commit. During review, compare the effective options rather than only the defaults in a config file: environment overrides may change the final values.
Check your own application
Record the pinned version and effective options in your own build. Replace the commands below with your project’s actual build and test commands. Do not put API tokens in configuration files, logs or commits.
# Replace with your project commands:
pnpm run build
pnpm testKeep a baseline artifact with its version, configuration and build identifier. Before and after upgrading, run functional tests on the same release configuration, compare compressed size, cold startup and critical interactions, and check error reporting and controlled access to source maps. If a test fails, investigate the configuration or compatibility difference before deciding on the upgrade; output that merely looks more complex is not a measurement of protection.
Your checklist
- Pin the obfuscator version and record effective options.
- Assert the specific Pro feature required by the build.
- Test functionality and failure paths on the release artifact.
- Compare size, startup and critical flows on target devices.
- Remove and rotate shared privileged client credentials.
Primary sources
- GitHub: javascript-obfuscator release 5.6.0 · Source date 2026-08-23 · Checked 2026-10-12
- javascript-obfuscator 5.6.0 README · Checked 2026-11-11