/

CVE Professor

NVD 🦅 CVE.org v5 🌐 Shodan CVEDB 🇪🇺 ENISA EUVD 🚨 CISA KEV GitHub Advisory ZeroDays.TR · 7-Source Real-Time CVE & AI Intelligence
Total CVEs
·
Critical
·
KEV
🌐
🔴
▶ Aktif filtre
🟠
▶ Aktif filtre
🚨
▶ Aktif filtre
↗ Detay
🚨 KEV 🦠 Ran
CVE ID / Tarih
CVSS Skor

Latest Published CVE Vulnerabilities (Page 570 — Real-Time Archive):
Vulnerability Intelligence Hubs (Vendors, CWEs & Severity):
CVE Archive Pages:
. Attackers can craft a malicious URL with an error parameter containing script breakout sequences to execute arbitrary JavaScript in the victim's browser context on the login page.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85593","description":"phpMyFAQ versions before 4.1.8 contain a stored cross-site scripting vulnerability in FaqHelper::convertOldInternalLinks() that calls html_entity_decode() on sanitized FAQ content, reversing entity-encoding protection. Authenticated users with FAQ editing privileges can inject JavaScript payloads that execute in the browsers of all users viewing the affected FAQ pages.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85600","description":"Grav Admin (getgrav/grav-plugin-admin2) versions <= 2.0.19 contain a stored cross-site scripting vulnerability in the tHtml() function (src/lib/stores/i18n.svelte.ts), which substitutes untrusted parameters such as usernames into translation templates before parsing the result as markdown. Grav's server-side username validation (DataUser::isValidUsername) blocks filesystem-dangerous characters but not <, >, \", or ', allowing an attacker to register a username containing an HTML payload. When an administrator views a UI surface that renders the username through tHtml()—such as the two-factor force-disable confirmation prompt or the 'page is locked' editor notice—the payload executes in their authenticated session. Fixed in 2.0.21.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85601","description":"Grav Admin before 2.0.20 fails to sanitize output from marked.parse() before injecting it into the DOM via Svelte's {@html} directive in MarkdownEditor and MarkdownModal components. Attackers can inject javascript: URI schemes in plugin or theme changelogs to execute arbitrary code in authenticated admin sessions without requiring site access.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-19057","description":"Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Gastromenum Gastromenum Ticket and QR Menu System allows Stored XSS.\n\nThis issue affects Gastromenum Ticket and QR Menu System: before 2026.08.31.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85650","description":"Trigger.dev before 4.5.2 contains a server-side request forgery vulnerability in webhook alert channel delivery URLs that are fetched without validation or SSRF protection. Authenticated users with organization membership can create alert channels with URLs targeting internal services and metadata endpoints, allowing the server to issue POST requests to restricted resources.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2022-35497","description":"In Trimble TM4WEB 21.4.0.4 due to security misconfiguration with session identifiers, it is possible to recover valid session cookies via reflected cross-site scripting affecting the external document viewer endpoint.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-16892","description":"IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authenticated attacker to bypass security restrictions due to improper authentication during service-name matching.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-17274","description":"IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authenticated attacker to bypass security restrictions due to predictable server seeds.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-17621","description":"IBM Langflow OSS 1.0.0 through 1.10.2 could allow a remote attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing \"dot dot \" sequences ( /.. /) to view arbitrary files on the system.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-38961","description":"Cross-Site Scripting (XSS) vulnerability in the RSS Widget of Netgate pfSense Plus (versions 26.03, 25.11.1) and pfSense CE (version 2.8.1) allows remote authenticated attackers to inject arbitrary JavaScript via malicious content in an RSS feed title. The injected script executes in the browser of any authenticated user who views the dashboard, due to insufficient sanitization of feed title data before rendering in the widget.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-78849","description":"Cross Site Scripting vulnerability in Netgate pfSense Plus software versions <= 26.03 pfSense CE software versions <= 2.8.1 allows a remote attacker to execute arbitrary code via the captive_portal_status.widget.php file","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-55513","description":"nebula-mesh is a self-hosted control plane for Slack Nebula mesh VPN. From version 0.3.0 to before version 0.5.0, the nebula-mgmt Web UI host-creation path ignores both the server-wide enrollment_token_ttl security setting and per-network network_config.enrollment_token_ttl overrides. API host creation and token-regeneration paths use the configured TTL resolver, but POST /ui/hosts hardcodes now.Add(24 * time.Hour) for newly minted agent enrollment tokens. In deployments that intentionally reduce enrollment-token lifetime, any authenticated operator who can create a host through the Web UI can still mint a bearer enrollment token valid for about 24 hours. This issue has been patched in version 0.5.0.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2022-26961","description":"Italtel NetMatch-S 5.0.0-20200703 allows Multiple Stored XSS under NP_IBCF-NATUP-01/NMSCI-WebGui/backup_restore.jsp and NP_IBCF-MIBER-03/NMSCI-WebGui/storage.jsp via the name parameter. A malicious user leveraging this vulnerability could inject arbitrary JavaScript. The malicious payload will then be triggered every time an authenticated user browses the page containing it.","score":5.4,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85381","description":"A security vulnerability has been detected in light0011 cms c774dce31c6df0055568a8d5c53d964d99be199d/f72cf46f601efb2a0618c3814cc2f61380b38930. This issue affects some unknown processing of the file App/Home/Controller/ChapterController.class.php of the component Chapter Controller. Such manipulation of the argument content leads to authorization bypass. The attack may be launched remotely. The exploit has been disclosed publicly and may be used. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases. The project was informed of the problem early through an issue report but has not responded yet.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85149","description":"SmartIT Desktop Manager developed by Lightstar has a Use of Hard-coded Credentials vulnerability. Unauthenticated remote attackers can obtain the SFTP service credentials of the SmartIT Agent application from the source code, thereby browsing the file system of the user's host.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2025-15691","description":"The WPFunnels WordPress plugin before 3.13.0 does not check whether user registration is enabled on the site before creating accounts from opt-in form submissions, relying on a value supplied in the request instead, allowing unauthenticated attackers to create WordPress user accounts even when registration is disabled.\n\nThis is an incomplete fix for CVE-2025-12353: the check added in 3.6.3 covers only one of the three registration paths.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-17517","description":"The Content Views WordPress plugin before 4.5.1.2 does not check whether the user requesting a view is allowed to read the posts it returns, allowing unauthenticated attackers to obtain the title and content of non-public posts, such as draft, pending, private and scheduled posts, when a view has been configured to include them.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-71216","description":"PagerDuty alarm hook transmits the integration routing key over cleartext HTTP.\n\n\n\nPagerDuty serves this endpoint over HTTPS and will\nnormally answer plain HTTP with a redirect. That does not remove the exposure.\nThe initial POST -- including the JSON body containing the routing key -- is\nwritten to the socket unencrypted before any redirect response is received.\nRedirection affects only whether the request is retried securely, not whether\nthe first copy left the host in the clear.\n\n\n\nThis issue affects Apache SkyWalking: from 9.6.0 through 11.0.0.\n\n\n\nUsers are recommended to upgrade to version 11.0.0, which fixes the issue.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-79630","description":"The WPFunnels WordPress plugin before 3.13.0 does not verify that the product requested through a checkout order bump is the product that bump's discount was configured for, allowing unauthenticated users to obtain any purchasable product at a discount intended for a different one, with the reduced price carried through to the total of the order they place.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-79631","description":"The WPFunnels WordPress plugin before 3.13.0 does not restrict access to the log files it writes to a predictable location under the public uploads directory, allowing unauthenticated users to download customer order details and opt-in form submissions when logging is enabled.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-79632","description":"The WPFunnels WordPress plugin before 3.13.0 does not perform any authorisation or nonce check in one of its opt-in submission handlers, and takes the notification recipients and subject from the request, allowing unauthenticated users to make the site send emails to arbitrary recipients with an arbitrary subject.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-84146","description":"The Xpro Addons — 140+ Widgets for Elementor WordPress plugin before 1.7.8 does not perform any capability or post-status check before rendering a WooCommerce product summary from a supplied product identifier, allowing unauthenticated visitors to retrieve the title, price, SKU, description and stock details of products that are not publicly published (draft, pending, private or scheduled status).","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-32480","description":"Missing Authorization vulnerability in WC Lovers WCFM Membership allows Exploiting Incorrectly Configured Access Control Security Levels.\n\nThis issue affects WCFM Membership: from n/a through 2.11.11.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85311","description":"Missing Authorization vulnerability in Kings Plugins MarketKing allows Exploiting Incorrectly Configured Access Control Security Levels.\n\nThis issue affects MarketKing: from n/a through 2.1.60.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-85528","description":"Improper input validation of the auto-configuration account identifier in Snowflake JDBC Driver versions 4.2.0 through 4.3.3 allowed a credential-bearing login request to be redirected to an attacker-selected HTTPS endpoint. An attacker able to control the account value could cause the driver to transmit a reusable login credential to a host of their choosing and replay it to obtain the privileges granted to that credential. Successful exploitation requires an application using jdbc:snowflake:auto with a connections.toml section that omits an explicit host and a lower-trust principal able to set the account value; ordinary JDBC URLs are unaffected. The fix is available in Snowflake JDBC Driver version 4.3.4, including the snowflake-jdbc-fips and snowflake-jdbc-thin. Users must manually upgrade.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-84043","description":"The ePayco Payment Gateway for WooCommerce WordPress plugin before 8.4.7 does not properly verify the authenticity of payment confirmation requests, allowing unauthenticated attackers to mark orders as paid without a valid gateway signature.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-84044","description":"The Restaurant Menu and Food Ordering WordPress plugin before 2.4.12 does not verify that a PayPal payment notification genuinely originates from PayPal, allowing unauthenticated attackers to forge a payment notification and mark their own order as paid and completed without making any payment.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false},{"id":"CVE-2026-27347","description":"Missing Authorization vulnerability in Crocoblock JetPopup allows Exploiting Incorrectly Configured Access Control Security Levels.\n\nThis issue affects JetPopup: from n/a through 2.0.20.2.","score":5.3,"severity":"MEDIUM","published_iso":"2026-09-04","source":"NVD","cisa_kev":false}], loading:false, dbTotal:0, directResult:null, directError:'', lookupLoading:false, lookupId:'', // API-side params (trigger load) apiKeyword:'', days:'90', apiPage:0, apiLimit:100, totalApi: 80, sevCounts:{}, catCounts:{}, // Client-side filters (instant, no API call) activeCategory:'all', catFilter:'', activeSev:'', showKev:false, showRan:false, // UI state lastUpdate:'', sidebarOpen:false, toasts:[], contactOpen:false, showBackTop:false, adMiddle: "", sortBy:'date', sortDir:'desc', page:1, pageSize:50, // Persist theme & auto-detect Turkey vs Global language theme: localStorage.getItem('cve-theme')||'dark', lang: (function(){ try { const s = localStorage.getItem('cve-lang'); if (s === 'tr' || s === 'en') return s; } catch(e){} const nav = (navigator.language||'').toLowerCase(); let tz = ''; try { tz = Intl.DateTimeFormat().resolvedOptions().timeZone||''; } catch(e){} return (nav.startsWith('tr') || tz === 'Europe/Istanbul' || tz === 'Asia/Istanbul') ? 'tr' : 'en'; })(), categories:[ {key:'all', labelTR:'Tümü', labelEN:'All', kw:'', icon:'🌐'}, {key:'wp', labelTR:'WordPress', labelEN:'WordPress', kw:'wordpress', icon:'🔵'}, {key:'joomla', labelTR:'Joomla', labelEN:'Joomla', kw:'joomla', icon:'🟡'}, {key:'drupal', labelTR:'Drupal', labelEN:'Drupal', kw:'drupal', icon:'🟠'}, {key:'apache', labelTR:'Apache', labelEN:'Apache', kw:'apache httpd', icon:'🔴'}, {key:'nginx', labelTR:'Nginx', labelEN:'Nginx', kw:'nginx', icon:'🟢'}, {key:'php', labelTR:'PHP', labelEN:'PHP', kw:'php', icon:'🟣'}, {key:'linux', labelTR:'Linux Kernel', labelEN:'Linux Kernel', kw:'linux kernel', icon:'🐧'}, {key:'openssl',labelTR:'OpenSSL', labelEN:'OpenSSL', kw:'openssl', icon:'🔐'}, {key:'ms', labelTR:'Microsoft', labelEN:'Microsoft', kw:'microsoft', icon:'🪟'}, {key:'cisco', labelTR:'Cisco', labelEN:'Cisco', kw:'cisco', icon:'🌀'}, {key:'python', labelTR:'Python / PyPI', labelEN:'Python / PyPI', kw:'python', icon:'🐍'}, {key:'chrome', labelTR:'Chrome / V8', labelEN:'Chrome / V8', kw:'chromium', icon:'🟤'}, {key:'fortinet',labelTR:'Fortinet', labelEN:'Fortinet', kw:'fortigate', icon:'🛡️'}, ], severities:[ {key:'CRITICAL',labelTR:'KRİTİK', color:'#ff5b5b'}, {key:'HIGH', labelTR:'YÜKSEK', color:'#f0883e'}, {key:'MEDIUM', labelTR:'ORTA', color:'#d29922'}, {key:'LOW', labelTR:'DÜŞÜK', color:'#3fb950'}, ], get tx(){ return this.lang==='tr'?TR:EN }, get sources(){ return [...new Set(this.cves.map(c=>c.source).filter(Boolean))].slice(0,5) }, // ── KEY FIX: categories filter the loaded cves CLIENT-SIDE ── get displayed(){ let r=[...this.cves]; // Category — client-side, no API call if(this.catFilter){ const kl=this.catFilter.toLowerCase(); r=r.filter(c=> (c.description||'').toLowerCase().includes(kl)|| (c.products||[]).some(p=>p.toLowerCase().includes(kl))|| (c.id||'').toLowerCase().includes(kl) ); } // Severity if(this.activeSev) r=r.filter(c=>c.severity===this.activeSev); // Special if(this.showKev) r=r.filter(c=>c.cisa_kev); if(this.showRan) r=r.filter(c=>c.ransomware); // Sort if(this.sortBy==='score') r.sort((a,b)=>this.sortDir==='desc'?(b.score||0)-(a.score||0):(a.score||0)-(b.score||0)); else r.sort((a,b)=>this.sortDir==='desc' ?String(b.published_iso||'').localeCompare(String(a.published_iso||'')) :String(a.published_iso||'').localeCompare(String(b.published_iso||''))); return r; }, get visibleCves(){ return this.displayed }, get totalApiPages(){ return Math.max(1, Math.ceil(this.totalApi/this.apiLimit)) }, get pageRange(){ const total=this.totalApiPages, cur=this.apiPage; const s=Math.max(0,cur-3), e=Math.min(total-1,cur+3); const r=[]; for(let i=s;i<=e;i++) r.push(i); return r; }, // Category click — set both API keyword and client-side filter, then reload setCategory(c){ this.activeCategory=c.key; this.catFilter=c.kw||''; this.apiKeyword=c.kw||''; this.page=1; this.directResult=null; this.directError=''; this.load(); }, countCat(c){ if(!Object.keys(this.catCounts).length) return ''; const n=this.catCounts[c.key]||0; return n.toLocaleString(this.lang==='tr'?'tr-TR':'en-US'); }, sevLabel(s){ const m={CRITICAL:this.tx.sevCRIT,HIGH:this.tx.sevHIGH,MEDIUM:this.tx.sevMED,LOW:this.tx.sevLOW,NONE:this.tx.sevNONE}; return m[s]||s||'—'; }, isNew(iso){ return iso===TODAY||iso===YESTERDAY }, setSortBy(k){ if(this.sortBy===k) this.sortDir=this.sortDir==='desc'?'asc':'desc'; else{this.sortBy=k;this.sortDir='desc'} }, init(){ document.getElementById('root').dataset.theme=this.theme; try{ localStorage.setItem('cve-theme',this.theme); }catch{} document.documentElement.lang=this.lang; // Read initial filter state from URL query params const sp = new URLSearchParams(window.location.search); if (sp.get('q')) { this.apiKeyword = sp.get('q'); const matchedCat = this.categories.find(c => c.kw && c.kw.toLowerCase() === this.apiKeyword.toLowerCase()); if (matchedCat) { this.activeCategory = matchedCat.key; this.catFilter = matchedCat.kw; } } if (sp.get('sev')) this.activeSev = sp.get('sev').toUpperCase(); if (sp.get('days')) this.days = sp.get('days'); if (sp.get('kev') === '1') this.showKev = true; if (sp.get('ran') === '1') this.showRan = true; // Keyboard shortcut: '/' or Ctrl+K to focus search box window.addEventListener('keydown', (e) => { if ((e.key === '/' && !['INPUT','TEXTAREA','SELECT'].includes(document.activeElement?.tagName)) || ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'k')) { e.preventDefault(); this.$refs.searchInput?.focus(); } }); window.addEventListener('scroll', () => { this.showBackTop = window.scrollY > 360; }, {passive: true}); const kwUpper = (this.apiKeyword||'').trim().toUpperCase(); if (/^CVE-\d{4}-\d+$/.test(kwUpper)) { this.lookup(kwUpper); } // Do not trigger XHR /api.php call for search engine bots (robots.txt blocks /api.php; bots keep the SSR-seeded this.cves) if (/bot|googlebot|bingbot|yandex|baiduspider|duckduckbot|slurp|facebot|ia_archiver|headlesschrome|lighthouse/i.test(navigator.userAgent || '')) { return; } this.load(); }, syncUrl(){ try { const sp = new URLSearchParams(); if (this.apiKeyword) sp.set('q', this.apiKeyword); if (this.activeSev) sp.set('sev', this.activeSev); if (String(this.days) !== '90') sp.set('days', this.days); if (this.showKev) sp.set('kev', '1'); if (this.showRan) sp.set('ran', '1'); const qs = sp.toString(); window.history.replaceState({}, '', qs ? `?${qs}` : window.location.pathname); } catch(e){} }, async copyId(id){ try { await navigator.clipboard.writeText(id); } catch(e){} this.toast(`✓ ${id} kopyalandı`); }, // load() = ilk yükleme veya filtre değişince async load(){ if(this.loading) return; this.syncUrl(); const hadSeed = this.cves && this.cves.length > 0; if (!hadSeed) this.loading=true; this.page=1; this.apiPage=0; try{ const url=`api.php?action=cves&q=${encodeURIComponent(this.apiKeyword||'')}&sev=${encodeURIComponent(this.activeSev||'')}&days=${this.days}&kev=${this.showKev?1:0}&ran=${this.showRan?1:0}&limit=${this.apiLimit}&page=0`; const r=await fetch(url); if(!r.ok) throw new Error(`HTTP ${r.status}`); const d=await r.json(); this.cves=d.cves||[]; this.totalApi=d.total||0; this.sevCounts=d.sev_counts||{}; this.catCounts=d.cat_counts||{}; this.dbTotal=d.db_stats?.total||0; this.lastUpdate=new Date().toLocaleTimeString(this.lang==='tr'?'tr-TR':'en-US',{hour:'2-digit',minute:'2-digit'}); this.toast(`✓ ${this.cves.length} / ${(d.total||0).toLocaleString()} CVE`); }catch(e){ if (!hadSeed) this.toast('⚠ '+e.message); } this.loading=false; }, // goPage() = sayfa numarasına git async goPage(n){ if(this.loading||n<0||n>=this.totalApiPages) return; this.loading=true; this.cves=[]; this.page=1; try{ const url=`api.php?action=cves&q=${encodeURIComponent(this.apiKeyword||'')}&sev=${encodeURIComponent(this.activeSev||'')}&days=${this.days}&kev=${this.showKev?1:0}&ran=${this.showRan?1:0}&limit=${this.apiLimit}&page=${n}`; const r=await fetch(url); if(!r.ok) throw new Error(`HTTP ${r.status}`); const d=await r.json(); this.cves=d.cves||[]; this.totalApi=d.total||0; this.sevCounts=d.sev_counts||{}; this.catCounts=d.cat_counts||{}; this.apiPage=n; this.lastUpdate=new Date().toLocaleTimeString(this.lang==='tr'?'tr-TR':'en-US',{hour:'2-digit',minute:'2-digit'}); window.scrollTo({top:0,behavior:'smooth'}); }catch(e){ this.toast('⚠ '+e.message) } this.loading=false; }, // doSearch = explicit user search (search box or days change) doSearch(){ this.activeCategory='all'; this.catFilter=''; // Detect CVE ID pattern — trigger direct lookup const kw = (this.apiKeyword||'').trim().toUpperCase(); if (/^CVE-\d{4}-\d+$/.test(kw)) { this.lookup(kw); return; } this.directResult=null; this.directError=''; this.load(); }, async lookup(id){ this.lookupLoading=true; this.lookupId=id; this.directResult=null; this.directError=''; try{ const r=await fetch(`api.php?action=lookup&id=${encodeURIComponent(id)}`); const d=await r.json(); if(d.error){ this.directError='⚠ '+d.error; } else{ this.directResult=d.cve; this.toast(`✓ ${id} ${d.cve.from_cache?'(DB önbellek)':'(NVD\'den getirildi)'}`); // Also add to cves list if not already there if(!this.cves.find(c=>c.id===id)) this.cves=[d.cve,...this.cves]; } }catch(e){ this.directError='⚠ Bağlantı hatası: '+e.message; } this.lookupLoading=false; }, exportData(){ window.open('api.php?action=export','_blank') }, toggleTheme(){ this.theme=this.theme==='dark'?'light':'dark'; document.getElementById('root').dataset.theme=this.theme; try{ localStorage.setItem('cve-theme',this.theme); }catch{} }, toggleLang(){ this.lang=this.lang==='tr'?'en':'tr'; document.documentElement.lang=this.lang; try{ localStorage.setItem('cve-lang',this.lang); }catch{} }, toast(msg){ const id=Date.now(); this.toasts.push({id,msg}); setTimeout(()=>this.toasts=this.toasts.filter(t=>t.id!==id),3000); }, } } if ('serviceWorker' in navigator) navigator.serviceWorker.register('/sw.js').catch(()=>{});