
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@tenonhq/sincronia-babel-preset-servicenow
Advanced tools
This Babel preset is meant to run absolutely last of all plugins and presets. Its purpose is to remove or refactor any code that might break ServiceNow's serverside Rhino engine. Right now it is fairly simple, but it might be enhanced in the future if more issues are discovered.
npm i -D @sincronia/babel-preset-servicenow
After the installation is completed, add it to the presets
section of your Babel configuration.
The sanitizer performs various operations on code to make it safe for ServiceNow
__proto__
referencesServiceNow blocks references to __proto__
on the serverside. This is sidestepped by changing all references to __proto__
to __proto-sn__
. So far all functionality has been preserved in transpiled output.
test.__proto__ = {};
becomes...
test.__proto-sn__ = {};
ServiceNow does not allow properties of objects that have the same name as keywords to be accessed directly. This is sidestepped by using the index syntax instead.
test.default;
becomes...
test["default"]
FAQs
ServiceNow Sanitizer Plugin
The npm package @tenonhq/sincronia-babel-preset-servicenow receives a total of 2 weekly downloads. As such, @tenonhq/sincronia-babel-preset-servicenow popularity was classified as not popular.
We found that @tenonhq/sincronia-babel-preset-servicenow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.