PageSourceSearch

https://www.socdefenders.ai/_next/static/chunks/pages/cves-a58e3ed106167229.js

js socdefenders.ai collected 2026-10-05 07:40:10 UTC 12,574 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8aeca6ad-7e11-4a47-8345-3eea0fd92d7a",e._sentryDebugIdIdentifier="sentry-dbid-8aeca6ad-7e11-4a47-8345-3eea0fd92d7a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6435],{27547:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cves",function(){return t(16247)}])},16247:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return y}});var a=t(85893),d=t(67294),s=t(9008),n=t.n(s),l=t(41664),o=t.n(l),i=t(11163),c=t(86010),x=t(31199);let u={CRITICAL:{bg:"bg-red-100 dark:bg-red-900/30",text:"text-red-700 dark:text-red-400",border:"border-red-300 dark:border-red-700"},HIGH:{bg:"bg-orange-100 dark:bg-orange-900/30",text:"text-orange-700 dark:text-orange-400",border:"border-orange-300 dark:border-orange-700"},MEDIUM:{bg:"bg-yellow-100 dark:bg-yellow-900/30",text:"text-yellow-700 dark:text-yellow-400",border:"border-yellow-300 dark:border-yellow-700"},LOW:{bg:"bg-blue-100 dark:bg-blue-900/30",text:"text-blue-700 dark:text-blue-400",border:"border-blue-300 dark:border-blue-700"},NONE:{bg:"bg-gray-100 dark:bg-gray-800",text:"text-gray-700 dark:text-gray-400",border:"border-control"},UNKNOWN:{bg:"bg-gray-100 dark:bg-gray-800",text:"text-gray-500 dark:text-gray-500",border:"border-control"}};function b(e){let{severity:r,score:t}=e,d=r||"UNKNOWN",s=u[d]||u.UNKNOWN;return(0,a.jsxs)("span",{className:(0,c.Z)("inline-flex items-center px-2 py-0.5 rounded text-xs font-medium border",s.bg,s.text,s.border),"data-sentry-component":"SeverityBadge","data-sentry-source-file":"index.tsx",children:[null!==t?t.toFixed(1):"N/A"," ",d]})}function m(){return(0,a.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-600 text-white","data-sentry-component":"KEVBadge","data-sentry-source-file":"index.tsx",children:"KEV"})}function g(e){let{score:r}=e;if(null===r)return null;let t=(100*r).toFixed(1);return(0,a.jsxs)("span",{className:(0,c.Z)("inline-flex items-center px-2 py-0.5 rounded text-xs font-medium",r>.5?"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-400":r>.1?"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-400":"bg-gray-100 dark:bg-gray-800 text-secondary"),"data-sentry-component":"EPSSIndicator","data-sentry-source-file":"index.tsx",children:["EPSS ",t,"%"]})}function k(e){let{cve:r}=e;return(0,a.jsx)(o(),{href:"/cves/".concat(r.id),className:"block p-4 border border-subtle dark:border-subtle-dark rounded-lg hover:bg-surface-muted dark:hover:bg-surface-muted-dark transition-colors","data-sentry-element":"Link","data-sentry-component":"CVECard","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap mb-2",children:[(0,a.jsx)("span",{className:"font-mono text-sm font-semibold text-primary dark:text-primary-dark",children:r.id}),(0,a.jsx)(b,{severity:r.cvss_v31_severity,score:r.cvss_v31_score,"data-sentry-element":"SeverityBadge","data-sentry-source-file":"index.tsx"}),r.is_kev&&(0,a.jsx)(m,{}),(0,a.jsx)(g,{score:r.epss_score,"data-sentry-element":"EPSSIndicator","data-sentry-source-file":"index.tsx"})]}),(0,a.jsx)("p",{className:"text-sm text-secondary dark:text-secondary-dark line-clamp-2 mb-2",children:r.description}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs text-tertiary dark:text-tertiary-dark",children:[(0,a.jsx)("span",{children:new Date(r.published_at).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}),r.vendors&&r.vendors.length>0&&(0,a.jsxs)("span",{className:"truncate max-w-[200px]",children:[r.vendors.slice(0,3).join(", "),r.vendors.length>3&&" +".concat(r.vendors.length-3)]})]})]})})})}function y(){var e,r,t,s,l;(0,i.useRouter)();let[o,x]=(0,d.useState)([]),[b,m]=(0,d.useState)(null),[g,y]=(0,d.useState)(!0),[f,h]=(0,d.useState)(null),[p,v]=(0,d.useState)(1),[N,j]=(0,d.useState)(0),[S,w]=(0,d.useState)(""),[E,C]=(0,d.useState)([]),[_,I]=(0,d.useState)(!1),[V,L]=(0,d.useState)("published_at"),[D,P]=(0,d.useState)("desc"),[T,O]=(0,d.useState)(1),[
1K,A]=(0,d.useState)("");(0,d.useEffect)(()=>{let e=setTimeout(()=>{A(S),O(1)},300);return()=>clearTimeout(e)},[S]);let H=(0,d.useCallback)(async()=>{y(!0),h(null);try{let e=new URLSearchParams;K&&e.set("search",K),E.length>0&&E.forEach(r=>e.append("severity",r)),_&&e.set("is_kev","true"),e.set("sort_by",V),e.set("sort_order",D),e.set("page",T.toString()),e.set("limit","25");let r=await fetch("/api/cves?".concat(e.toString()));if(!r.ok)throw Error("Failed to fetch CVEs");let t=await r.json();x(t.cves),v(t.pagination.totalPages),j(t.pagination.total)}catch(e){h(e instanceof Error?e.message:"Unknown error")}finally{y(!1)}},[K,E,_,V,D,T]),U=(0,d.useCallback)(async()=>{try{let e=await fetch("/api/cves/stats");if(e.ok){let r=await e.json();m(r.stats)}}catch(e){console.error("Failed to fetch stats:",e)}},[]);(0,d.useEffect)(()=>{H()},[H]),(0,d.useEffect)(()=>{U()},[U]);let F=e=>{C(r=>r.includes(e)?r.filter(r=>r!==e):[...r,e]),O(1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{"data-sentry-element":"Head","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)("title",{children:"CVE Database | SOC Defenders"}),(0,a.jsx)("meta",{name:"description",content:"Browse and search CVE vulnerabilities with CVSS scores, CISA KEV status, and EPSS exploit probability","data-sentry-element":"meta","data-sentry-source-file":"index.tsx"})]}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:[(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-primary dark:text-primary-dark mb-2",children:"CVE Database"}),(0,a.jsx)("p",{className:"text-secondary dark:text-secondary-dark",children:"Search and browse Common Vulnerabilities and Exposures from NVD, enriched with CISA KEV and EPSS data."})]}),b&&b.by_severity&&(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4 mb-6",children:[(0,a.jsxs)("div",{className:"bg-surface dark:bg-surface-dark border border-subtle dark:border-subtle-dark rounded-lg p-4",children:[(0,a.jsx)("div",{className:"text-2xl font-bold text-primary dark:text-primary-dark",children:(null!==(e=b.total)&&void 0!==e?e:0).toLocaleString()}),(0,a.jsx)("div",{className:"text-xs text-tertiary dark:text-tertiary-dark",children:"Total CVEs"})]}),(0,a.jsxs)("div",{className:"bg-error-soft border border-red-200 dark:border-red-800 rounded-lg p-4",children:[(0,a.jsx)("div",{className:"text-2xl font-bold text-red-600 dark:text-red-400",children:(null!==(r=b.by_severity.CRITICAL)&&void 0!==r?r:0).toLocaleString()}),(0,a.jsx)("div",{className:"text-xs text-red-600 dark:text-red-400",children:"Critical"})]}),(0,a.jsxs)("div",{className:"bg-warning-soft border border-orange-200 dark:border-orange-800 rounded-lg p-4",children:[(0,a.jsx)("div",{className:"text-2xl font-bold text-orange-600 dark:text-orange-400",children:(null!==(t=b.by_severity.HIGH)&&void 0!==t?t:0).toLocaleString()}),(0,a.jsx)("div",{className:"text-xs text-orange-600 dark:text-orange-400",children:"High"})]}),(0,a.jsxs)("div",{className:"bg-red-100 dark:bg-red-900/30 border border-red-300 dark:border-red-700 rounded-lg p-4",children:[(0,a.jsx)("div",{className:"text-2xl font-bold text-red-700 dark:text-red-300",children:(null!==(s=b.kev_count)&&void 0!==s?s:0).toLocaleString()}),(0,a.jsx)("div",{className:"text-xs text-red-700 dark:text-red-300",children:"CISA KEV"})]}),(0,a.jsxs)("div",{className:"bg-surface dark:bg-surface-dark border border-subtle dark:border-subtle-dark rounded-lg p-4",children:[(0,a.jsx)("div",{className:"text-2xl font-bold text-primary dark:text-primary-dark",children:(null!==(l=b.last_7d)&&void 0!==l?l:0).toLocaleString()}),(0,a.jsx)("div",{className:"text-xs text-tertiary dark:text-tertiary-dark",children:"Last 7 days"})]})]}),(0,a.jsxs)("div",{className:"bg-surface dark:bg-surface-dark border border-subtle dark:border-subtle-dark rounded-lg p-4 mb-6",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("input",{type:"text",placeholder:"Search CVE ID or description...",value:S,onChange:e=>w(e.target.value),className:"w-full px-4 py-2 border border-subtle dark:border-subtle-dark rounded-lg bg-surface dark:bg-surface-dark text-primary dark:text-primary-dark placeholder-tertiary dark:placeholder-tertiary-dark focus:outline-none focus:ring-2 focus:ring-accent dark:focus:ring-accent-dark"})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("select",{value:V,onChange:e=>{L(e.target.value),O(1)},className:"px-3 py-2 border border-subtle dark:border-subtle-dark rounded-lg bg-surface dark:bg-surface-dark text-primary dark:text-primary-dark focus:outline-none focus:ring-2 focus:ring-accent dark:focus:ring-accent-dark",children:[(0,a.jsx)("option",{value:"published_at",children:"Published Date"}),(0,a.jsx)("option",{value:"cvss_v31_score",children:"CVSS Score"}),(0,a.jsx)("option",{value:"epss_score",children:"EPSS Score"})]}),(0,a.jsx)("button",{onClick:()=>{P("asc"===D?"desc":"asc"),O(1)},className:"px-3 py-2 border border-subtle dark:border-subtle-dark rounded-lg bg-surface dark:bg-surface-dark text-secondary dark:text-secondary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark",title:"asc"===D?"Sort ascending":"Sort descending",children:"asc"===D?"↑":"↓"})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-4",children:[(0,a.jsx)("span",{className:"text-sm text-tertiary dark:text-tertiary-dark",children:"Severity:"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(e=>{let r=u[e],t=E.includes(e);return(0,a.jsx)("button",{onClick:()=>
1F(e),className:(0,c.Z)("px-3 py-1 rounded-full text-xs font-medium border transition-all",t?"".concat(r.bg," ").concat(r.text," ").concat(r.border):"bg-transparent text-secondary dark:text-secondary-dark border-subtle dark:border-subtle-dark hover:border-accent dark:hover:border-accent-dark"),children:e},e)}),(0,a.jsx)("span",{className:"text-sm text-tertiary dark:text-tertiary-dark ml-4",children:"Filter:"}),(0,a.jsx)("button",{onClick:()=>{I(!_),O(1)},className:(0,c.Z)("px-3 py-1 rounded-full text-xs font-medium border transition-all",_?"bg-red-600 text-white border-red-600":"bg-transparent text-secondary dark:text-secondary-dark border-subtle dark:border-subtle-dark hover:border-red-400"),children:"CISA KEV Only"})]})]}),(0,a.jsx)("div",{className:"text-sm text-tertiary dark:text-tertiary-dark mb-4",children:g?"Loading...":"".concat(N.toLocaleString()," CVEs found")}),f&&(0,a.jsx)("div",{className:"bg-error-soft border border-red-200 dark:border-red-800 rounded-lg p-4 mb-6",children:(0,a.jsx)("p",{className:"text-red-700 dark:text-red-400",children:f})}),g?(0,a.jsx)("div",{className:"space-y-4",children:[void 0,void 0,void 0,void 0,void 0].map((e,r)=>(0,a.jsx)("div",{className:"animate-pulse",children:(0,a.jsx)("div",{className:"h-24 bg-surface-muted dark:bg-surface-muted-dark rounded-lg"})},r))}):0===o.length?(0,a.jsx)("div",{className:"text-center py-12",children:(0,a.jsx)("p",{className:"text-secondary dark:text-secondary-dark",children:"No CVEs found. Try adjusting your filters or search terms."})}):(0,a.jsx)("div",{className:"space-y-3",children:o.map(e=>(0,a.jsx)(k,{cve:e},e.id))}),p>1&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-8",children:[(0,a.jsx)("button",{onClick:()=>O(Math.max(1,T-1)),disabled:1===T,className:"px-4 py-2 text-sm border border-subtle dark:border-subtle-dark rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-muted dark:hover:bg-surface-muted-dark",children:"Previous"}),(0,a.jsxs)("span",{className:"text-sm text-secondary dark:text-secondary-dark",children:["Page ",T," of ",p]}),(0,a.jsx)("button",{onClick:()=>O(Math.min(p,T+1)),disabled:T===p,className:"px-4 py-2 text-sm border border-subtle dark:border-subtle-dark rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-muted dark:hover:bg-surface-muted-dark",children:"Next"})]})]})]})}y.getLayout=e=>(0,a.jsx)(x.Z,{children:e})},9008:function(e,r,t){e.exports=t(68869)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=27547)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.