{"uid":"cap_NM1Z1DcqAoGhGxrRtbald","slug":"api-strale-io-cdeee8d5","name":"Package Security Audit (npm/PyPI)","description":"Composite security audit for npm and PyPI packages with supply chain anomaly detection","url":"https://api.strale.io/x402/package-security-audit?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Package name"},"version":{"type":"string","description":"Version to audit"},"ecosystem":{"type":"string","description":"npm or pypi"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"name":"lodash","version":"4.17.21","ecosystem":"npm"}}},"response":{"name":"lodash","_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0xa37911519413d2b2642b1186a7d44aa7ecf2e75a3f11d4e39b4c838502e8a5f4"},"capability":"package-security-audit","latency_ms":444,"provenance":{"source":"osv.dev + deps.dev + registry","fetched_at":"2026-06-13T04:26:05.144Z"}},"license":{"spdx":"MIT","is_copyleft":false,"is_osi_approved":true},"version":"4.17.21","ecosystem":"npm","freshness":{"is_latest":false,"published_at":"2026-04-01T21:01:20.458Z","is_deprecated":false,"latest_version":"4.18.1","version_age_hours":46525,"recently_published":false,"days_since_last_release":72},"scorecard":null,"risk_level":"medium","risk_score":79,"maintainers":1,"supply_chain":{"provenance":{"has_attestation":false,"attestation_missing":false,"previous_had_attestation":false},"current_publisher":"bnjmnt4n","publisher_changed":false,"previous_publisher":"bnjmnt4n","has_install_scripts":false,"install_script_names":[]},"vulnerabilities":{"low":2,"high":1,"total":3,"medium":0,"details":[{"id":"GHSA-f23m-r3pf-42rh","summary":"lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`","fixed_in":"4.18.0","severity":"moderate"},{"id":"GHSA-r5fr-rjxr-66jc","summary":"lodash vulnerable to Code Injection via `_.template` imports key names","fixed_in":"4.18.0","severity":"high"},{"id":"GHSA-xxjr-mmjv-4gpg","summary":"Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions","fixed_in":"4.17.23","severity":"moderate"}],"critical":0},"dependency_count":0}},"exampleRequest":{"name":"lodash","version":"4.17.21","ecosystem":"npm"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Yia97M-SlATy1jXaaTQrh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a composite security audit on an npm or PyPI package, combining CVE checks, OpenSSF Scorecard, license analysis, freshness, and supply chain anomaly detection into a 0-100 risk score.","exampleAgentPrompt":"Can you run a full security audit on the npm package 'lodash' version 4.17.21 — I want to know its CVE exposure, OpenSSF scorecard, license, freshness, and whether there are any supply chain red flags like publisher changes or install scripts?","exampleUseCases":null,"resultDescription":"Returns a 0-100 composite risk score along with detailed sub-findings: known CVEs from OSV.dev, OpenSSF Scorecard rating, license type and any compliance concerns, package freshness/staleness, and supply chain anomaly flags such as publisher change, provenance regression, and presence of install scripts.","failureModes":["Package not found in the specified ecosystem — returns 404 or empty result","Unsupported ecosystem value (anything other than 'npm' or 'pypi') — returns validation error","Missing required 'name' query parameter — returns 400 bad request","Version string not found for the given package — may return audit for latest or an error","OSV.dev or OpenSSF upstream services unavailable — may return partial results or timeout"],"whenToPreferThis":"Choose this endpoint when you need a holistic, multi-dimensional security assessment of a single npm or PyPI package — especially when supply chain risk (publisher changes, install scripts, provenance) matters as much as CVE exposure. Prefer this over a plain CVE checker when you want a single normalized risk score that combines vulnerability data, project health (OpenSSF), license risk, and freshness in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:59:54.790Z","isFirstParty":false,"canonicalSlug":"api-strale-io-cdeee8d5"}