cloudflare-images

Warn

Audited by Socket on Sep 26, 2026

6 alerts found:

Anomalyx6
AnomalyLOW
templates/variants-management.ts

The code appears to be a legitimate Cloudflare Images variant-management module and contains no clear malware, exfiltration, backdoor, or obfuscation indicators. It has a significant application security issue: unauthenticated endpoints expose Cloudflare variant listings and permit arbitrary variant creation using the worker's privileged API token. Add authentication and authorization, validate request fields and dimensions at runtime, constrain variant IDs, and check upstream HTTP status and response schemas. The provided fragment also appears truncated or syntactically incomplete at the end.

Confidence: 97%Severity: 68%
AnomalyLOW
templates/signed-urls-generation.ts

The code is readable and appears to implement legitimate image URL signing, with no clear malicious or supply-chain attack behavior. It has meaningful security weaknesses if the fetch endpoint is publicly exposed: lack of authentication, unrestricted image and variant selection, inadequate expiry validation, and unsafe path interpolation. The signing key itself is not directly leaked. Validate and bound expiry, encode or strictly validate path components, add authorization/rate limiting as appropriate, use unambiguous signing input, and consider constant-time signature comparison.

Confidence: 98%Severity: 62%
AnomalyLOW
templates/transform-via-url.ts

The code is a readable image URL and responsive HTML helper with no apparent malicious behavior. The primary security issue is potential XSS because alt is not HTML-escaped before interpolation. Unvalidated imagePath and runtime option values can also produce malformed or manipulated transformation URLs. Escape HTML attribute values, validate or safely encode image paths and option values, and avoid rendering the returned string as trusted HTML without sanitization.

Confidence: 98%Severity: 55%
AnomalyLOW
templates/direct-creator-upload-backend.ts

The code is not indicative of malware, but the upload endpoint has meaningful access-control and abuse risks. Any origin and unauthenticated caller can mint Cloudflare Images upload URLs using the server's account privileges, potentially consuming storage or uploading unauthorized content. Wildcard CORS amplifies this exposure. Restrict origins, authenticate and authorize callers, validate input, consider defaulting requireSignedURLs to true, enforce rate limits, and URL-encode or validate imageId before constructing API paths.

Confidence: 98%Severity: 68%
AnomalyLOW
templates/upload-via-url.ts

The code is ordinary Cloudflare Images integration and shows no clear malware or supply-chain backdoor. It has a meaningful SSRF/privacy risk because arbitrary URLs are forwarded to a remote image-fetching API, and the incomplete private-URL helper suggests unsafe credential embedding if implemented as implied. Restrict allowed URL schemes and destinations, enforce authorization and batch limits, and avoid embedding credentials in URLs.

Confidence: 96%Severity: 62%
AnomalyLOW
templates/upload-api-basic.ts

The code implements a legitimate Cloudflare Images upload proxy and contains no clear malware or supply-chain backdoor. Its main security concerns are unauthenticated and unrestricted uploads, lack of file validation and resource limits, potential quota or storage abuse, and deliberately public image variants. The Cloudflare API token is used in an expected server-side manner and is not sent to the client.

Confidence: 98%Severity: 62%
Audit Metadata
Analyzed At
Sep 26, 2026, 11:45 AM
Package URL
pkg:socket/skills-sh/ma1orek%2Freplay%2Fcloudflare-images%2F@de1002f7f1ec9421ddc4aaa4b1fe72585647d100156ef2d15bed1f467e0e6f7a