<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Somnath Khadanga</title>
    <description>The latest articles on DEV Community by Somnath Khadanga (@somnath_khadanga_2e5c2364).</description>
    <link>https://dev.to/somnath_khadanga_2e5c2364</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2272171%2F90243b25-39b8-4fed-90a7-3aa283977054.jpg</url>
      <title>DEV Community: Somnath Khadanga</title>
      <link>https://dev.to/somnath_khadanga_2e5c2364</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/somnath_khadanga_2e5c2364"/>
    <language>en</language>
    <item>
      <title>How to Rescue an Unfinished SaaS Project: Access, Assessment and a Staged Plan</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:41:03 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/how-to-rescue-an-unfinished-saas-project-access-assessment-and-a-staged-plan-2mbg</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/how-to-rescue-an-unfinished-saas-project-access-assessment-and-a-staged-plan-2mbg</guid>
      <description>&lt;p&gt;The developer stopped replying. Or the agency finished its budget, not the product. Either way, you now own a SaaS product that is half built, and nobody can tell you exactly which half.&lt;/p&gt;

&lt;p&gt;The natural reaction is to hire someone and ask them to "finish it". That skips the step that decides whether finishing is even possible. This guide covers how to rescue an unfinished SaaS project in order: recover access, find out what you actually have, decide what to keep, and then finish it in stages that are safe to stop at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recover Access Before Anyone Touches the Code
&lt;/h2&gt;

&lt;p&gt;You cannot fix what you cannot log in to. Before any assessment, list every account the product depends on and who holds each one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the domain registrar and DNS;&lt;/li&gt;
&lt;li&gt;hosting, the database and file storage;&lt;/li&gt;
&lt;li&gt;the source code repository;&lt;/li&gt;
&lt;li&gt;the payment provider;&lt;/li&gt;
&lt;li&gt;email sending, error tracking and analytics;&lt;/li&gt;
&lt;li&gt;app store accounts and any paid outside APIs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is simple: each of these should sit in an account your company controls, with at least two people from your side able to sign in.&lt;/p&gt;

&lt;p&gt;The domain is the one that hurts most when it is wrong. ICANN's guidance for domain holders explains that the transfer code (Auth-Code) exists to &lt;a href="https://www.icann.org/resources/pages/name-holder-faqs-2017-10-10-en" rel="noopener noreferrer"&gt;identify the domain name holder, called the registrant&lt;/a&gt;, and that moving a domain to a new registrant is done through the current registrar. A common mistake is a domain registered in a freelancer's personal name. Check the registrant, not just who pays the renewal.&lt;/p&gt;

&lt;p&gt;For code on GitHub, moving the repository into your organization is usually straightforward, but read the details. GitHub's documentation notes that after a transfer, &lt;a href="https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository" rel="noopener noreferrer"&gt;the original owner is added as a collaborator&lt;/a&gt;, and that webhooks, secrets and deploy keys stay associated with the repository. So a transfer alone does not remove the old team's access. Review collaborators, webhooks and deploy keys straight after.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rotate every secret the previous team could see
&lt;/h3&gt;

&lt;p&gt;Assume every API key, database password and signing secret the old team handled is still in someone's notes. Replace them, one at a time, and confirm the product still works after each change.&lt;/p&gt;

&lt;p&gt;Deleting a key from the code is not enough. GitHub's guide to removing sensitive data says that when a secret has been committed, &lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository" rel="noopener noreferrer"&gt;the first step is to revoke or rotate it&lt;/a&gt;, because once it is rotated it can no longer be used. Rewriting history is a later, optional clean-up.&lt;/p&gt;

&lt;p&gt;Rotating also teaches you something. If nobody can say which service uses a key, you have found your first gap in the documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find Out What You Actually Have
&lt;/h2&gt;

&lt;p&gt;An unfinished product usually looks more finished than it is. Screens are the fastest part to build, so a demo can look nearly complete while the parts behind it are missing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scenario&lt;/strong&gt; (illustrative, not a real project): a founder is told the product is "about 80% done". The dashboard looks right. On inspection, sign-up works, but payments are a placeholder button, the invoice page reads from sample data, and there is no way to deploy except from one laptop. Measured by working paths a customer can complete, the product is much less than 80% done.&lt;/p&gt;

&lt;p&gt;To avoid that surprise, the assessment should answer five questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Does it build from a clean checkout?&lt;/strong&gt; A new developer clones the repository, follows the written steps and gets it running. If that takes days of guessing, record it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can it be deployed by someone other than the original developer?&lt;/strong&gt; If the only deploy path is one person's machine, the product is not under your control yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which customer paths work end to end?&lt;/strong&gt; Sign up, pay, do the core job, get a result. Mark each one as working, partly working or only a screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is the data model sound?&lt;/strong&gt; Look for missing constraints, data that should be linked but is not, and real customer data mixed with test data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is already in production?&lt;/strong&gt; If real users or payments exist, every later change has to protect them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our guide to &lt;a href="https://somanathkhadanga.com/blog/saas-technical-audit-what-it-includes" rel="noopener noreferrer"&gt;what a SaaS technical audit includes&lt;/a&gt; goes deeper on the review itself. For a rescue, these five questions are the minimum before anyone writes new code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide What to Keep, Fix or Replace
&lt;/h2&gt;

&lt;p&gt;Do not judge the codebase as a whole. Judge it part by part, because most unfinished products are a mix.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part of the product&lt;/th&gt;
&lt;th&gt;Keep&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;th&gt;Replace&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it looks like&lt;/td&gt;
&lt;td&gt;Works end to end, has a sound data model&lt;/td&gt;
&lt;td&gt;Works, but untested or fragile&lt;/td&gt;
&lt;td&gt;Built on the wrong data model or unsafe foundations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What you do next&lt;/td&gt;
&lt;td&gt;Add tests around it and move on&lt;/td&gt;
&lt;td&gt;Repair it in place, in small steps&lt;/td&gt;
&lt;td&gt;Rebuild that part beside the old one&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This table is &lt;strong&gt;qualitative&lt;/strong&gt;: it describes how to decide, not how long each choice takes.&lt;/p&gt;

&lt;p&gt;The data model usually decides the outcome. Screens can be rebuilt quickly. A schema that cannot represent your business correctly forces changes everywhere it is used.&lt;/p&gt;

&lt;p&gt;When one part needs replacing, replace that part, not the whole product. Martin Fowler's &lt;a href="https://martinfowler.com/bliki/StranglerFigApplication.html" rel="noopener noreferrer"&gt;strangler fig application&lt;/a&gt; describes growing a new system around an old one until the old part can be switched off. Our &lt;a href="https://somanathkhadanga.com/blog/rebuild-or-repair-your-saas" rel="noopener noreferrer"&gt;rebuild or repair guide&lt;/a&gt; covers when a full rebuild is actually the right call, which is less often than it feels on a bad week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Settle Ownership in Writing
&lt;/h2&gt;

&lt;p&gt;Having the code in your repository is not the same as owning it. Who owns the code written so far depends on the contract with the previous developer or agency, and on the law where you both work.&lt;/p&gt;

&lt;p&gt;Before investing more money, confirm in writing that the work done so far belongs to your company, that you have the right to change and reuse it, and that any outside templates or paid components are licensed to you. If the agreement is unclear or missing, ask a lawyer. This is a legal question, not a technical one.&lt;/p&gt;

&lt;p&gt;Our guide to &lt;a href="https://somanathkhadanga.com/blog/freelancer-vs-agency-saas-development" rel="noopener noreferrer"&gt;freelancer vs agency for SaaS development&lt;/a&gt; covers how to set this up correctly from the start next time.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Staged Recovery Plan
&lt;/h2&gt;

&lt;p&gt;Once access, assessment and ownership are settled, finish the product in stages. Each stage should leave the product in a better state than before, so you can pause between them without losing ground.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Secure it.&lt;/strong&gt; Every account in your control, every secret rotated, old access removed, a backup taken and a restore tested.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make it run.&lt;/strong&gt; A clean build from written steps, a separate staging environment, and a deploy anyone on the team can run and roll back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finish one path.&lt;/strong&gt; Pick the single customer path that earns money, usually sign-up to first payment, and make it work end to end with tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch it.&lt;/strong&gt; Add error tracking and alerts on that path before real users arrive. Our &lt;a href="https://somanathkhadanga.com/blog/minimum-viable-observability-saas" rel="noopener noreferrer"&gt;minimum viable observability guide&lt;/a&gt; covers a starting point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Widen.&lt;/strong&gt; Finish the remaining paths one at a time, keeping, fixing or replacing each part as decided above.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Teams often want to start at stage 5, because that is where visible progress is. It comes last because the first four stages make every later change safe and cheap to undo.&lt;/p&gt;

&lt;p&gt;The rule I would hold any rescue to: &lt;strong&gt;recover access and prove the product builds and deploys before writing a single new feature.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  When to Do It Yourself and When to Get Help
&lt;/h2&gt;

&lt;p&gt;A founder with a technical co-founder or a senior developer on the team can run most of this in house. The access inventory and secret rotation in particular are work you should own yourself, because they are about control of your business.&lt;/p&gt;

&lt;p&gt;Outside help makes sense when nobody on your side can judge the code, when the previous team left without notes, or when real customers or payments are already in production and a mistake would reach them. Ask any developer you consider for their plan for the first two weeks. If it starts with new features, keep looking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should a new developer start by finishing the missing features?
&lt;/h3&gt;

&lt;p&gt;No. First recover every account, rotate the secrets the previous team could see, and prove the product builds and deploys from a clean checkout. New features on top of a product nobody can deploy only add to the unknowns.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I know if the unfinished code is worth keeping?
&lt;/h3&gt;

&lt;p&gt;Judge it part by part, not as a whole. Keep the parts that work end to end and have a sound data model, fix the parts that are close, and replace only the parts that are wrong at the foundation. The data model is usually the deciding factor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/rebuild-or-repair-your-saas" rel="noopener noreferrer"&gt;Should You Rebuild or Repair Your SaaS?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/saas-technical-audit-what-it-includes" rel="noopener noreferrer"&gt;What a SaaS Technical Audit Includes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/5-signs-your-mvp-is-not-production-ready" rel="noopener noreferrer"&gt;5 Signs Your MVP Is Not Production-Ready&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If you have inherited an unfinished SaaS product, start with the account list above and fill in who holds each one today. Add repository access and one sentence on what the product must do for its first paying customer. With that, the &lt;a href="https://somanathkhadanga.com/saas-mvp-audit" rel="noopener noreferrer"&gt;SaaS MVP audit&lt;/a&gt; can tell you what to keep, fix or replace, and the &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; covers the staged recovery work when you want it done for you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/rescue-unfinished-saas-project" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>softwareengineering</category>
      <category>management</category>
    </item>
    <item>
      <title>What a SaaS Technical Audit Includes: Inputs, Scope, Report and Fix Order</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:40:12 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/what-a-saas-technical-audit-includes-inputs-scope-report-and-fix-order-134g</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/what-a-saas-technical-audit-includes-inputs-scope-report-and-fix-order-134g</guid>
      <description>&lt;p&gt;Two people can sell you a "SaaS technical audit" and deliver completely different things. One runs a scanner and forwards a long PDF. The other reads the code, follows a customer's data through it, and hands back a short list of what to fix first. Both invoices say audit.&lt;/p&gt;

&lt;p&gt;This guide covers what a SaaS technical audit should include, so you can check the scope before you pay: the access you hand over, the areas reviewed, the report, and how the fixes get ordered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start With the Decision, Not the Checklist
&lt;/h2&gt;

&lt;p&gt;An audit is only useful if it helps you decide something. Write that decision down first, because it changes what gets reviewed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Can we put paying customers on this?&lt;/strong&gt; The review leans toward access control, data safety and deployment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why is every change slow and risky?&lt;/strong&gt; It leans toward architecture, tests and the release process.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Should we rebuild or repair?&lt;/strong&gt; It leans toward the data model and the foundation. Our &lt;a href="https://somanathkhadanga.com/blog/rebuild-or-repair-your-saas" rel="noopener noreferrer"&gt;rebuild or repair guide&lt;/a&gt; covers that choice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can we trust what the previous team left?&lt;/strong&gt; It starts with ownership: who holds the domain, hosting, payment and source control accounts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A common mistake is to ask for "a full audit of everything". The reviewer then picks the priorities for you. Agree on one main question in writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Hand Over
&lt;/h2&gt;

&lt;p&gt;A typical list:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read access to the source repository, including its history.&lt;/li&gt;
&lt;li&gt;An overview of hosting, environments and outside services.&lt;/li&gt;
&lt;li&gt;The database schema, without customer records.&lt;/li&gt;
&lt;li&gt;The names of environment variables and where they are stored. Never the values.&lt;/li&gt;
&lt;li&gt;Recent error reports, incidents and slow pages, even as rough notes.&lt;/li&gt;
&lt;li&gt;One page on what the product does, who pays for it and what worries you.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Give read-only access wherever you can, use named accounts, and remove them when the work ends. If an auditor asks for production passwords over chat, treat that as your first finding.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Six Areas a SaaS Technical Audit Should Review
&lt;/h2&gt;

&lt;p&gt;The order below is my recommendation. It puts the problems that can hurt customers ahead of the ones that slow developers down.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Access control and tenant isolation
&lt;/h3&gt;

&lt;p&gt;Can a user reach data they should not? &lt;a href="https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/" rel="noopener noreferrer"&gt;Broken access control is first in the OWASP Top 10:2025&lt;/a&gt;, and the category includes opening someone else's record by changing an identifier in a request. In SaaS, that can mean one customer reading another customer's invoices.&lt;/p&gt;

&lt;p&gt;A reviewer should test this with two accounts, not only read the code. Our &lt;a href="https://somanathkhadanga.com/blog/saas-tenant-isolation-authorization-blueprint" rel="noopener noreferrer"&gt;tenant isolation blueprint&lt;/a&gt; shows what good looks like.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Data model and data safety
&lt;/h3&gt;

&lt;p&gt;Does the schema prevent bad data, or does it rely on every developer remembering the rules? Reviewers look for missing unique constraints, missing foreign keys, and related writes that are not in one transaction.&lt;/p&gt;

&lt;p&gt;Then backups. Google's SRE book makes the point that &lt;a href="https://sre.google/sre-book/data-integrity/" rel="noopener noreferrer"&gt;what people really want is restores&lt;/a&gt;, not backups. The audit question is "when was a restore last tested?", not "are backups on?".&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Secrets and dependencies
&lt;/h3&gt;

&lt;p&gt;Are keys in the code or in its history? Deleting a key from the latest commit leaves it in earlier ones, which is why &lt;a href="https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning" rel="noopener noreferrer"&gt;GitHub secret scanning covers the entire Git history&lt;/a&gt; on all branches. Known vulnerable packages should be listed too, with a note on whether your product actually uses the affected code.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Deployment and recovery
&lt;/h3&gt;

&lt;p&gt;Can the team ship a small change on a normal day, and undo it quickly? The review covers the build pipeline, database migrations, separate environments and the rollback path. A rollback that nobody has tried is an assumption.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Errors and monitoring
&lt;/h3&gt;

&lt;p&gt;When checkout breaks, who finds out first: the team or a customer? Check for error tracking, alerts on the few flows that earn money, and background jobs that fail silently. Our &lt;a href="https://somanathkhadanga.com/blog/minimum-viable-observability-saas" rel="noopener noreferrer"&gt;observability baseline&lt;/a&gt; covers a starting point.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Code health and performance
&lt;/h3&gt;

&lt;p&gt;Which files break most often? Which flows have no tests? Which queries get slower as data grows? Untidy code is not automatically a risk. It matters where it meets money, data or frequent change.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Commonly Gets Left Out
&lt;/h2&gt;

&lt;p&gt;Automated scanners are useful inputs, but they are weak at business rules. A scanner does not know that a trial user should not export every contact, or that a refund must happen once.&lt;/p&gt;

&lt;p&gt;Standards have edges too. The &lt;a href="https://owasp.org/www-project-application-security-verification-standard/" rel="noopener noreferrer"&gt;OWASP Application Security Verification Standard&lt;/a&gt; is a strong base for the security part, but whether your backups restore needs its own check.&lt;/p&gt;

&lt;p&gt;Ask for a "not reviewed" section. Every audit has limits, and an honest report says where it stopped.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Should Get at the End
&lt;/h2&gt;

&lt;p&gt;The report should work for two readers: the founder who decides and the developer who fixes. Expect four parts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A one-page summary&lt;/strong&gt; that answers the question you started with, in plain language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Findings&lt;/strong&gt;, each with evidence, impact, a suggested fix and rough effort.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A ranked plan&lt;/strong&gt;: fix now, fix next, accept for now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The limits&lt;/strong&gt;: what was not reviewed, and what the reviewer could not confirm.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is one finding written properly. It is an &lt;strong&gt;illustrative&lt;/strong&gt; example, not from a client project.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Problem&lt;/td&gt;
&lt;td&gt;The invoice endpoint loads a record by ID and never checks which company owns it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evidence&lt;/td&gt;
&lt;td&gt;Signed in as company A, opened an invoice belonging to company B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Impact&lt;/td&gt;
&lt;td&gt;Any customer can read other customers' billing details&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fix&lt;/td&gt;
&lt;td&gt;Filter by company in the query, and add a test with two companies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Effort&lt;/td&gt;
&lt;td&gt;Small: one endpoint, then check similar ones&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Done when&lt;/td&gt;
&lt;td&gt;The two-company test fails on the old code and passes on the new&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Compare that with "authorization should be improved". Both describe the same bug, but only one tells a developer what to do.&lt;/p&gt;

&lt;p&gt;The rule I would hold any audit to: &lt;strong&gt;a finding is not finished until it has evidence, an effort estimate and a way to prove it is fixed.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Decide What Gets Fixed First
&lt;/h2&gt;

&lt;p&gt;If twelve items are marked "high", the list is not ranked. For known software vulnerabilities, CISA's &lt;a href="https://www.cisa.gov/stakeholder-specific-vulnerability-categorization-ssvc" rel="noopener noreferrer"&gt;SSVC method&lt;/a&gt; is a useful model. It ends in a decision (Track, Track*, Attend or Act) and weighs things like whether the flaw is already being exploited. For every other finding, ask:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Who gets hurt?&lt;/strong&gt; Customer data and money come before developer comfort.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How easily can it happen?&lt;/strong&gt; A normal user clicking normally beats a rare sequence of events.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can it be undone?&lt;/strong&gt; Leaked or lost data usually cannot. A slow page can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How small is the fix?&lt;/strong&gt; Between two equal risks, take the smaller change.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then work in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Close exposed data and leaked keys. Replace the keys, do not only delete them from the code.&lt;/li&gt;
&lt;li&gt;Test a restore.&lt;/li&gt;
&lt;li&gt;Make releases safe to undo.&lt;/li&gt;
&lt;li&gt;Add alerts on the flows that earn money.&lt;/li&gt;
&lt;li&gt;Add tests around those flows.&lt;/li&gt;
&lt;li&gt;Clean up code in the areas you change most.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Teams often start at step 6. It is last here because the earlier steps make cleanup safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to Do It Yourself and When to Get Help
&lt;/h2&gt;

&lt;p&gt;A team can audit itself when someone senior understands the whole system and has protected time. Use the six areas above, and have the person who did not write the code do the review. If AI tools wrote most of it, start with &lt;a href="https://somanathkhadanga.com/blog/what-to-audit-in-a-vibe-coded-mvp-before-real-users-see-it" rel="noopener noreferrer"&gt;what to audit in a vibe-coded MVP&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Get outside help when the original developers are gone, when the team disagrees about how bad things are, or when a large decision depends on the answer. Ask any reviewer for a sample finding first. It tells you more than a list of services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is a technical audit the same as a penetration test?
&lt;/h3&gt;

&lt;p&gt;No. A penetration test tries to breach a running system. A technical audit reads the code, data model, deployment and monitoring to explain why the product is risky or slow to change, and what to fix first. The UK's NCSC &lt;a href="https://www.ncsc.gov.uk/guidance/penetration-testing" rel="noopener noreferrer"&gt;describes penetration testing&lt;/a&gt; as a way to gain assurance in your existing process, not as the primary way to find vulnerabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  When is a technical audit not worth paying for?
&lt;/h3&gt;

&lt;p&gt;When you already know the top problems and only need someone to fix them, when you have no budget to act on the findings, or when the product is about to be thrown away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/rebuild-or-repair-your-saas" rel="noopener noreferrer"&gt;Should You Rebuild or Repair Your SaaS?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/5-signs-your-mvp-is-not-production-ready" rel="noopener noreferrer"&gt;5 Signs Your MVP Is Not Production-Ready&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/production-ready-saas-mvp" rel="noopener noreferrer"&gt;What Makes a SaaS MVP Production-Ready&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If you are about to add paying customers, take over an unfinished product or approve a large rebuild, write one sentence first: the decision this audit should settle. Add repository access and a rough list of worries, and you are ready. The &lt;a href="https://somanathkhadanga.com/saas-mvp-audit" rel="noopener noreferrer"&gt;SaaS MVP audit&lt;/a&gt; ends in a fix list ranked by launch risk, and the &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; covers the repair work when you want it done too.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/saas-technical-audit-what-it-includes" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>security</category>
      <category>architecture</category>
    </item>
    <item>
      <title>PostgreSQL's November 12 Security Release: 52 CVEs, What to Patch and Check Today</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:37:23 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/postgresqls-november-12-security-release-52-cves-what-to-patch-and-check-today-737</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/postgresqls-november-12-security-release-52-cves-what-to-patch-and-check-today-737</guid>
      <description>&lt;p&gt;The PostgreSQL project shipped 18.7, 17.12, 16.16, 15.20 and 14.25 on November 12, 2026. The &lt;a href="https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/" rel="noopener noreferrer"&gt;release announcement&lt;/a&gt; lists 52 CVEs, and the project's &lt;a href="https://www.postgresql.org/support/security/" rel="noopener noreferrer"&gt;security index&lt;/a&gt; rates 32 of them CVSS 8.8. Most of those are code execution on the database server by a logged-in user who can create objects.&lt;/p&gt;

&lt;p&gt;That sounds narrow, but by default PostgreSQL lets any role that can connect create temporary objects. A November 18 write-up shows one of these bugs being reached that way. This brief covers exposure, the upgrade, and the post-update steps that are easy to skip.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;The release is larger than a normal quarterly update. Grouped by what matters to an application team:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Server code execution by an authenticated user.&lt;/strong&gt; The headline issue, &lt;a href="https://www.postgresql.org/support/security/CVE-2026-6460/" rel="noopener noreferrer"&gt;CVE-2026-6460&lt;/a&gt; (CVSS 8.8), is a type confusion after &lt;code&gt;ALTER ... SET DATA TYPE&lt;/code&gt; and some other DDL sequences. A logged-in user can run code as the operating system user that runs PostgreSQL. About thirty other 8.8 entries follow the same pattern: use-after-free or type confusion in PL/pgSQL, PL/Perl, PL/Tcl, &lt;code&gt;dblink&lt;/code&gt;, foreign data wrappers, aggregates and text search functions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A second route that needs no schema ownership.&lt;/strong&gt; &lt;a href="https://www.postgresql.org/support/security/CVE-2026-116331/" rel="noopener noreferrer"&gt;CVE-2026-116331&lt;/a&gt; (CVSS 8.8) is a type confusion through a user-defined aggregate. PostgreSQL's advisory says "object creator". &lt;a href="https://depthfirst.com/research/narrow-grants-wide-engines" rel="noopener noreferrer"&gt;Depthfirst's November 18 research&lt;/a&gt; says a new login role with no extra grants qualifies, because it inherits &lt;code&gt;TEMPORARY&lt;/code&gt; on the database and can work in its own temporary schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One pre-authentication issue on the server.&lt;/strong&gt; CVE-2026-116322 (CVSS 5.3, PostgreSQL 18 only) lets an unauthenticated client force a server restart through the cancel-request path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client tools.&lt;/strong&gt; Crafted archives can make &lt;code&gt;pg_restore&lt;/code&gt; run code (CVE-2026-116314), a compromised source server can inject &lt;code&gt;psql&lt;/code&gt; commands through &lt;code&gt;pg_dump&lt;/code&gt; tar output (CVE-2026-116330), and &lt;code&gt;reindexdb&lt;/code&gt; and &lt;code&gt;vacuumdb&lt;/code&gt; have injection issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Row security and view gaps.&lt;/strong&gt; Several medium items let &lt;code&gt;INSERT ... ON CONFLICT&lt;/code&gt;, &lt;code&gt;DROP OWNED&lt;/code&gt; or &lt;code&gt;security_barrier&lt;/code&gt; views expose or remove rows that row-level security should protect.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The release also fixes over 140 bugs, including index corruption and broken incremental backups. &lt;strong&gt;PostgreSQL 14.25 is the final 14.x release&lt;/strong&gt;; 14 is now end-of-life.&lt;/p&gt;

&lt;p&gt;Exploitation: the project's pages make no statement about attacks, and &lt;a href="https://thehackernews.com/2026/11/researcher-demonstrates-database-rce.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt; reported on November 19 that none of the demonstrated exploits has been seen in a real attack. The Depthfirst write-up describes the steps from SQL to code execution but omits the function bodies and payload values, so it is not a ready-to-run exploit. We have not reproduced it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;p&gt;Every version before the fixed releases is affected by CVE-2026-6460 and CVE-2026-116331.&lt;/p&gt;

&lt;p&gt;The question that decides your exposure is: &lt;strong&gt;who can create objects in your database, including temporary ones?&lt;/strong&gt; PostgreSQL's &lt;a href="https://www.postgresql.org/docs/18/ddl-priv.html" rel="noopener noreferrer"&gt;privilege docs&lt;/a&gt; say &lt;code&gt;CONNECT&lt;/code&gt; and &lt;code&gt;TEMPORARY&lt;/code&gt; on a database are granted to &lt;code&gt;PUBLIC&lt;/code&gt; by default.&lt;/p&gt;

&lt;p&gt;You are more exposed if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your application connects as the same role that runs migrations, so it can &lt;code&gt;CREATE&lt;/code&gt; and &lt;code&gt;ALTER&lt;/code&gt; tables. A SQL injection that allows arbitrary statements could then lead to code execution on the database host;&lt;/li&gt;
&lt;li&gt;customers, analysts or internal tools get a SQL console, a "bring your own query" feature, or their own schema in a shared cluster;&lt;/li&gt;
&lt;li&gt;you allow PL/Perl or PL/Tcl, or use &lt;code&gt;dblink&lt;/code&gt; or foreign data wrappers;&lt;/li&gt;
&lt;li&gt;you run PostgreSQL 18 with the port reachable from the internet (CVE-2026-116322);&lt;/li&gt;
&lt;li&gt;your backup jobs restore archives from places you do not fully control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You are less exposed if the app role can only read and write rows in tables it does not own, migrations run under a separate role, &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;TEMPORARY&lt;/code&gt; has been revoked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Managed databases.&lt;/strong&gt; If you use RDS, Aurora, Cloud SQL, Azure, Supabase, Neon or similar, you cannot patch the server yourself. Whether each provider has rolled out these minor versions is unconfirmed here. Your client tools are still your responsibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every version.&lt;/strong&gt; Run &lt;code&gt;SELECT version();&lt;/code&gt; against each database, including replicas, staging and preview branches. Check Docker and Compose files too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade to the fixed minor for your line:&lt;/strong&gt; 18.7, 17.12, 16.16, 15.20 or 14.25. A minor update needs no dump and reload; replace the binaries and restart.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update extensions at the same time.&lt;/strong&gt; The release notes say C-language extensions must be rebuilt for full protection against CVE-2026-6460, and some need source changes. The PGDG RPM packages now &lt;a href="https://yum.postgresql.org/news/extensions-require-minor-release/" rel="noopener noreferrer"&gt;require the new minor release&lt;/a&gt;: updating one extension pulls in the new server packages and restarts the service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not turn off the new check.&lt;/strong&gt; The release adds a &lt;code&gt;composite_type_mismatch&lt;/code&gt; setting that can disable the new type checks. The notes say disabling it carries security risks. Leave it alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On a managed service,&lt;/strong&gt; open the provider's maintenance or version page, schedule the minor upgrade as soon as it is offered, and record the date you checked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update client tools&lt;/strong&gt; (&lt;code&gt;psql&lt;/code&gt;, &lt;code&gt;pg_dump&lt;/code&gt;, &lt;code&gt;pg_restore&lt;/code&gt;) on laptops, CI runners and backup hosts, not only on servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tighten the app role.&lt;/strong&gt; Move migrations to a separate role and revoke &lt;code&gt;CREATE&lt;/code&gt; on the schema from the runtime role. Then, for each database, consider:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;TEMPORARY&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;DATABASE&lt;/span&gt; &lt;span class="n"&gt;your_db&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="no"&gt;PUBLIC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Depthfirst recommends this as hardening. It is not a fix: a role that can create ordinary objects can still reach the bug, so &lt;a href="https://blog.ostorlab.co/postgresql-rce-any-login-role-cve-2026-116331.html" rel="noopener noreferrer"&gt;upgrade anyway&lt;/a&gt;. Test on staging first, because anything that uses temporary tables will fail. Grant it back only to roles that need it. If you can't patch today, do this step first.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Post-Update Steps Teams Miss
&lt;/h2&gt;

&lt;p&gt;The bug fixes come with follow-up work listed in the &lt;a href="https://www.postgresql.org/docs/18/release-18-7.html" rel="noopener noreferrer"&gt;18.7 release notes&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reindex&lt;/strong&gt; B-tree indexes on &lt;code&gt;bpchar&lt;/code&gt; columns without a length, every &lt;code&gt;gist_trgm_ops&lt;/code&gt; index, and any GIN index you suspect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take a new full backup&lt;/strong&gt; if you use incremental backups, and base later incrementals on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check &lt;code&gt;NOT NULL NO INHERIT&lt;/code&gt; constraints&lt;/strong&gt; on partitioned tables with the query in the release announcement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Verify You Are Safe
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;SELECT version();&lt;/code&gt; shows 18.7, 17.12, 16.16, 15.20, 14.25 or newer on every primary and replica.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;SHOW composite_type_mismatch;&lt;/code&gt; returns the default, and nobody changed it in &lt;code&gt;postgresql.conf&lt;/code&gt; or with &lt;code&gt;ALTER SYSTEM&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Every extension loads after the restart (&lt;code&gt;SELECT * FROM pg_extension;&lt;/code&gt;, then exercise the features that use them).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pg_dump --version&lt;/code&gt; on your backup host matches the new release.&lt;/li&gt;
&lt;li&gt;Your runtime role cannot create a table: connect as it and try &lt;code&gt;CREATE TABLE probe(id int);&lt;/code&gt; in a scratch schema. It should fail.&lt;/li&gt;
&lt;li&gt;If you revoked &lt;code&gt;TEMPORARY&lt;/code&gt;, &lt;code&gt;SELECT has_database_privilege(current_user, current_database(), 'TEMPORARY');&lt;/code&gt; returns false for that role.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Exploitation reports or a complete public exploit&lt;/strong&gt; for CVE-2026-6460 or CVE-2026-116331. None found as of November 24, and neither was among the entries added to CISA's exploited list since November 19.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 19 GA&lt;/strong&gt; &lt;a href="https://www.postgresql.org/about/news/postgresql-19-released-3449/" rel="noopener noreferrer"&gt;shipped on November 19, 2026&lt;/a&gt;. If you are on 14, plan a major upgrade rather than staying on an end-of-life line.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/postgresql-19-saas-upgrade-rehearsal" rel="noopener noreferrer"&gt;PostgreSQL 19 Beta 3: Rehearse Your SaaS Upgrade Now&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/nodejs-november-2026-security-release-http2-tls" rel="noopener noreferrer"&gt;Node.js's November 11 Security Release: Check HTTP/2, TLS and Your Version Today&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/saas-tenant-isolation-authorization-blueprint" rel="noopener noreferrer"&gt;Your SaaS Login Is Not Tenant Isolation: A Founder’s Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If your product runs on PostgreSQL, steps 1 and 2 tell you within minutes whether any database is behind. If the app connects as the migration role, fix that even after the patch. A &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; covers database roles, patch cadence, backup verification and rollback. Bring a list of your databases, their versions and hosting, and which roles your app and migrations use.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/postgresql-november-2026-security-release" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>security</category>
      <category>database</category>
      <category>devops</category>
    </item>
    <item>
      <title>Prompt Theft at AI Inference Providers: What OpenRouter Users Should Check and Rotate Today</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:36:26 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/prompt-theft-at-ai-inference-providers-what-openrouter-users-should-check-and-rotate-today-2lee</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/prompt-theft-at-ai-inference-providers-what-openrouter-users-should-check-and-rotate-today-2lee</guid>
      <description>&lt;p&gt;On November 22, 2026, &lt;a href="https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/" rel="noopener noreferrer"&gt;OpenRouter said&lt;/a&gt; it had off-boarded three inference providers, removed 125 endpoints from Zero Data Retention (ZDR) eligibility and notified all potentially affected customers. It says the findings did not show any breach of OpenRouter itself. The problem sits one hop further on, at companies that run the models.&lt;/p&gt;

&lt;p&gt;Two things make this worth an hour today. Several providers have published dates and models, including new statements on November 24. And if your prompts carried an API key, a password or a private link, most of those notices tell you to rotate it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;Between July and November, &lt;a href="https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens" rel="noopener noreferrer"&gt;Dragos researchers&lt;/a&gt; sent about two million prompts containing unique URLs and canary credentials to widely used AI services, then watched for anyone using them. They report three kinds of failure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Break-ins.&lt;/strong&gt; Attackers stole data from three hosting providers. Two of those breaches included requests marked ZDR. Dragos says real customer requests were "almost certainly" copied too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reseller logging.&lt;/strong&gt; Sellers on an inference marketplace turned on request logging and used what they collected. No exploit was needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ignored privacy settings.&lt;/strong&gt; Links inside prompts were opened days, weeks or months later. Some of those requests were marked ZDR or "no data collection".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Not confirmed:&lt;/strong&gt; Dragos has not named the three breached companies, and OpenRouter has not named the three it removed. Do not assume they match the list below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;p&gt;You are in scope if any of these windows overlaps with your traffic. Each row is the provider's own statement, read on November 25.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Requests covered&lt;/th&gt;
&lt;th&gt;What the provider says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.gmicloud.ai/en/blog/security-incident-affecting-gmi-cloud-endpoints-on-openrouter" rel="noopener noreferrer"&gt;GMI Cloud&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Its endpoints, including through OpenRouter, October 18 to November 18&lt;/td&gt;
&lt;td&gt;Unauthorized access to a logging system holding prompts and responses. Rotate secrets now.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://phala.com/posts/phala-november-preliminary-incident-report" rel="noopener noreferrer"&gt;Phala&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;DeepSeek V4 Flash 0731 routed by OpenRouter, October 21 00:00 UTC to November 8 05:35 UTC&lt;/td&gt;
&lt;td&gt;Treat request contents as exposed. Rotate secrets.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026" rel="noopener noreferrer"&gt;Together AI&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Samples from MiniMax M3, GLM-5.2 and Kimi K2.6, mainly June 24 and July 4, 8 and 14&lt;/td&gt;
&lt;td&gt;Stored samples were downloaded and searched for credentials. Affected customers will be contacted as needed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://novita.ai/blog/minimax-requests-privacy-notice/" rel="noopener noreferrer"&gt;Novita&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;MiniMax models, May 28 to November 11, direct or through OpenRouter&lt;/td&gt;
&lt;td&gt;Some requests were forwarded to MiniMax's API. Rotate live secrets as a precaution.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.atlascloud.ai/blog/ai-updates/security-and-privacy-commitment" rel="noopener noreferrer"&gt;Atlas Cloud&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;MiniMax M3, M2.7 and M3.1 Flash; no exact dates given&lt;/td&gt;
&lt;td&gt;Treat any secret sent to these models as exposed.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://www.minimax.io/blog/update-on-url-access-in-forwarded-api-requests-20261124" rel="noopener noreferrer"&gt;MiniMax's November 24 statement&lt;/a&gt; says a security system extracted URLs from some forwarded requests and opened them, including requests marked ZDR. It says full content was not retained and that the behavior is now disabled on the identified path. That is MiniMax's account. Atlas Cloud's advice to treat secrets as exposed did not change after it.&lt;/p&gt;

&lt;p&gt;Not every affected provider has posted publicly, so an empty result against this table is not an all-clear. If you call one first-tier provider directly and nothing in your stack uses a router, none of these notices covers that traffic. Dragos calls this the smallest exposure you can buy, not zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every path to a router.&lt;/strong&gt; Search code, environment variables and no-code tools for &lt;code&gt;openrouter.ai&lt;/code&gt;, the provider names above, and any discount inference endpoint. Include coding agents, internal scripts and staging. Ask which vendors you use that route through one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search the inbox on the account.&lt;/strong&gt; Look for an OpenRouter or provider notice. It may be sitting with whoever signed up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;List which providers served you.&lt;/strong&gt; OpenRouter's &lt;a href="https://openrouter.ai/openapi.json" rel="noopener noreferrer"&gt;activity endpoint&lt;/a&gt;, &lt;code&gt;GET /api/v1/activity&lt;/code&gt;, returns usage with a &lt;code&gt;provider_name&lt;/code&gt; field and needs a management key. It covers only the last 30 completed UTC days. On November 25 that reaches back to October 26, so export now and use the Logs page or your own request logs for earlier dates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rotate what could have been in a prompt.&lt;/strong&gt; Start with agents, because they send whatever they can read: &lt;code&gt;.env&lt;/code&gt; files, connection strings, cloud keys, tokens in stack traces. Include private links such as signed URLs, invite links and password-reset links. Rotate first, then review the old credential's usage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pin providers and turn off open fallback.&lt;/strong&gt; OpenRouter's &lt;a href="https://openrouter.ai/docs/guides/routing/provider-selection" rel="noopener noreferrer"&gt;provider routing options&lt;/a&gt; let you name who may serve a request:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"only"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"your-approved-provider-slug"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"data_collection"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"zdr"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With one slug in &lt;code&gt;only&lt;/code&gt;, no other provider can take the request, so plan for it to fail when that provider does. You can set the same allowlist account-wide in privacy settings, which is safer than trusting every call site. On self-serve accounts &lt;code&gt;zdr: true&lt;/code&gt; also permits "Safety Retention" endpoints unless you choose &lt;strong&gt;ZDR only&lt;/strong&gt;. ZDR routing does not cover plugins or tools you enable, such as web search.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stop sending secrets.&lt;/strong&gt; Filter known credential formats before the request leaves your backend, and give agents short-lived, narrow credentials. Dragos notes that filters miss sensitive data that does not look like a key, so limit what goes into context as well.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Verify You Are Safe
&lt;/h2&gt;

&lt;p&gt;You cannot prove a prompt was never read. You can check for misuse and build a tripwire.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Credential logs.&lt;/strong&gt; For AWS, check CloudTrail for the exposed keys. Dragos saw attackers test keys, list S3 buckets, search Secrets Manager and Parameter Store, try to create Bedrock API keys and add IAM users. It suggests adding the user agents &lt;code&gt;artex-agent&lt;/code&gt; and &lt;code&gt;artex-judge-r121&lt;/code&gt; to detections, but says such self-identification appeared in only a small fraction of traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New identities.&lt;/strong&gt; Look for IAM users, API keys, OAuth grants and SSH keys created since the earliest window that applies to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routing proof.&lt;/strong&gt; Send test requests with your new settings and confirm the reported provider is on your list. This shows the provider your router reports, not hidden hops behind it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own canary.&lt;/strong&gt; Put a &lt;a href="https://canarytokens.org/" rel="noopener noreferrer"&gt;canary token&lt;/a&gt; that is used nowhere else into the context your pipeline already sends. Treat any use of it as an incident.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If customer data was in affected prompts, involve whoever owns your privacy commitments before you decide that rotation is enough. Your contracts may require notice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat ZDR as a Promise to Verify
&lt;/h2&gt;

&lt;p&gt;A ZDR flag is a routing filter backed by a policy. Some of the requests stolen in two of the breaches carried it. That holds on other gateways too: &lt;a href="https://vercel.com/docs/ai-gateway/capabilities/zdr" rel="noopener noreferrer"&gt;Vercel's AI Gateway docs&lt;/a&gt; say provider ZDR status is self-reported. On November 23 Vercel announced an &lt;a href="https://vercel.com/blog/introducing-audited-zdr-on-ai-gateway" rel="noopener noreferrer"&gt;Audited ZDR tier&lt;/a&gt; that requires an independent published audit, plus its own canary checks. Launch partners have started audits, and each joins the tier when its report is published. Check that it contains the models you need before relying on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenRouter's live list&lt;/strong&gt; of provider announcements. New windows may be added.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phala's full root cause analysis&lt;/strong&gt;, and Together AI's review of the affected prompts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Names of the three removed providers.&lt;/strong&gt; Treat any list without a primary source as unconfirmed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/coding-agent-sandbox-saas-security" rel="noopener noreferrer"&gt;Your Coding Agent Needs a Sandbox: A SaaS Security Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/ai-agent-identity-saas-access-blueprint" rel="noopener noreferrer"&gt;Your AI Agent Needs Its Own Identity: A SaaS Access Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/regional-ai-inference-data-residency-saas" rel="noopener noreferrer"&gt;Regional AI Inference: What SaaS Teams Must Check Before Promising Data Residency&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If you use a router, steps 1 to 4 tell you today whether anything needs rotating. If you find that nobody can say which companies see your customers' prompts, that is a design question about your AI features, and the &lt;a href="https://somanathkhadanga.com/services/ai-saas-development" rel="noopener noreferrer"&gt;AI SaaS development&lt;/a&gt; service covers it. Bring your list of models, the routers in between, and what your product promises about data.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/ai-inference-provider-prompt-theft-openrouter" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>llm</category>
      <category>privacy</category>
    </item>
    <item>
      <title>LiteLLM's Guardrail Sandbox Escape Is Now Actively Exploited: What to Check Today</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:35:38 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/litellms-guardrail-sandbox-escape-is-now-actively-exploited-what-to-check-today-4kma</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/litellms-guardrail-sandbox-escape-is-now-actively-exploited-what-to-check-today-4kma</guid>
      <description>&lt;p&gt;On November 18, 2026, CISA added &lt;a href="https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-40217" rel="noopener noreferrer"&gt;CVE-2026-40217&lt;/a&gt; to its Known Exploited Vulnerabilities catalog. The bug is in LiteLLM, the open-source proxy many AI products put in front of OpenAI, Anthropic, Bedrock and Gemini so they can switch models, track spend and hand out virtual keys. CISA lists it because there is evidence of exploitation, not because it is new: the fix shipped in April.&lt;/p&gt;

&lt;p&gt;If your team self-hosts the LiteLLM proxy, this is a short check. The proxy usually holds every provider API key you own, so code execution on it is a key-theft problem, not just a server problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;LiteLLM has an endpoint, &lt;code&gt;POST /guardrails/test_custom_code&lt;/code&gt;, that runs Python you submit so you can try out a custom guardrail. It ran that code in a home-made sandbox. According to the &lt;a href="https://github.com/advisories/GHSA-wxxx-gvqv-xp7p" rel="noopener noreferrer"&gt;GitHub advisory GHSA-wxxx-gvqv-xp7p&lt;/a&gt;, the sandbox "can be escaped using bytecode-level techniques", which gives arbitrary code execution inside the proxy process. The advisory notes the proxy runs as root in the default Docker image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verified, from the advisory:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Affected: &lt;code&gt;litellm&lt;/code&gt; 1.81.8 up to but not including 1.83.10.&lt;/li&gt;
&lt;li&gt;Patched: the metadata says 1.83.10; the advisory text says the RestrictedPython sandbox that replaces the old one landed in 1.83.11. Treat 1.83.11 as the floor for this CVE.&lt;/li&gt;
&lt;li&gt;Severity: High, CVSS 4.0 score 7.5. Exploitation needs a proxy-admin credential in default configurations.&lt;/li&gt;
&lt;li&gt;Workaround if you cannot upgrade: block &lt;code&gt;POST /guardrails/test_custom_code&lt;/code&gt; at your reverse proxy or gateway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CISA's entry gives US federal agencies until December 2, 2026 to apply mitigations. That deadline does not bind private companies, but it is a useful signal of priority.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "Admin Only" Is Not Much Comfort
&lt;/h2&gt;

&lt;p&gt;A bug that needs an admin key sounds low risk. Two things change that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attackers guess admin keys.&lt;/strong&gt; Zenity Labs &lt;a href="https://labs.zenity.io/p/threat-actors-are-trying-to-use-litellm-s-guardrail-tester-to-run-code-as-root" rel="noopener noreferrer"&gt;reported in June&lt;/a&gt; that its honeypots logged 569 POST requests to this exact endpoint between April 15 and May 24, 2026. The requests cycled through 47 guessed master keys such as &lt;code&gt;sk-1234&lt;/code&gt;, &lt;code&gt;sk-admin&lt;/code&gt; and &lt;code&gt;sk-changeme&lt;/code&gt;, then tried payloads that dumped environment variables and ran shell commands. If your master key was ever left at an example value, assume someone has tried it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It chains with other LiteLLM bugs.&lt;/strong&gt; Obsidian Security &lt;a href="https://obsidiansecurity.com/blog/litellm-privilege-escalation-rce" rel="noopener noreferrer"&gt;described a chain&lt;/a&gt; in which a normal &lt;code&gt;internal_user&lt;/code&gt; key can raise itself to &lt;code&gt;proxy_admin&lt;/code&gt; (CVE-2026-47101 and CVE-2026-47102) and then use this sandbox escape. Their write-up says the complete fix set for all three is in v1.83.14-stable. Separately, Wiz &lt;a href="https://www.wiz.io/blog/off-guard-breaking-litellm-from-authentication-bypass-to-cloud-compromise" rel="noopener noreferrer"&gt;reported an MCP authentication bypass&lt;/a&gt;, CVE-2026-59822, fixed in v1.84.0, which CISA added to the same catalog on September 2.&lt;/p&gt;

&lt;p&gt;So the real question is not only "is our admin key secret" but "which version are we on, and who can reach the proxy".&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You self-host the LiteLLM proxy&lt;/strong&gt; (Docker, Kubernetes, a VM) on a version below 1.83.11. You are in scope for this CVE. Below 1.84.0, you are also exposed to the September KEV entry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your proxy's admin UI or API is reachable from the internet.&lt;/strong&gt; This is the case the honeypot data describes. Exposure is much lower if only your backend can reach it on a private network, but upgrade anyway.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You use LiteLLM only as a Python SDK&lt;/strong&gt; inside your app, with no proxy server. The vulnerable endpoint belongs to the proxy. The advisory is filed against the &lt;code&gt;litellm&lt;/code&gt; package as a whole, so update it, but the attack path above does not apply in the same way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You call OpenAI, Anthropic, Bedrock or Gemini directly&lt;/strong&gt; without LiteLLM. Not affected by this CVE.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every proxy.&lt;/strong&gt; Check deployment manifests, Helm values and Dockerfiles for &lt;code&gt;litellm&lt;/code&gt; images, and run &lt;code&gt;pip show litellm&lt;/code&gt; in any Python service. Staging and "temporary" demo proxies count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade to a current release.&lt;/strong&gt; The &lt;a href="https://github.com/BerriAI/litellm/releases" rel="noopener noreferrer"&gt;LiteLLM releases page&lt;/a&gt; listed 1.108.11 (LTS) and 1.110.1 as the newest on November 19. Anything at or above 1.84.0 clears the fixes named in this brief; a current LTS build is the simpler choice. Test your config in staging first, since you may be jumping many minor versions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block the test endpoint at the edge.&lt;/strong&gt; Even after upgrading, deny external &lt;code&gt;POST /guardrails/test_custom_code&lt;/code&gt; and &lt;code&gt;POST /guardrails&lt;/code&gt; unless you actually manage guardrails through them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take the admin surface off the internet.&lt;/strong&gt; Put the admin UI and management routes behind a VPN, an identity-aware proxy or an IP allowlist. Your application only needs the model routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace the master key.&lt;/strong&gt; Set a long random &lt;code&gt;LITELLM_MASTER_KEY&lt;/code&gt; and confirm no example value survives in any environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run as non-root.&lt;/strong&gt; Use a non-root user in your container, and give the proxy's cloud role only what it needs, so code execution does not turn into account access.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Check Whether You Were Hit
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Access logs:&lt;/strong&gt; search for requests to &lt;code&gt;/guardrails/test_custom_code&lt;/code&gt; and &lt;code&gt;/guardrails&lt;/code&gt; from addresses you do not recognise, and for bursts of 401s with different bearer values (key guessing).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payload hints Zenity describes:&lt;/strong&gt; request bodies containing &lt;code&gt;os.environ&lt;/code&gt;, &lt;code&gt;subprocess&lt;/code&gt;, &lt;code&gt;gi_code&lt;/code&gt;, &lt;code&gt;f_builtins&lt;/code&gt;, or names like &lt;code&gt;__globals__&lt;/code&gt; assembled from string fragments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guardrails and callbacks:&lt;/strong&gt; list every custom code guardrail on the proxy and every entry under &lt;code&gt;litellm_settings.callbacks&lt;/code&gt; in &lt;code&gt;config.yaml&lt;/code&gt;. Obsidian notes that callbacks do not appear in the admin UI. Remove anything you did not add.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Users and roles:&lt;/strong&gt; list accounts with &lt;code&gt;proxy_admin&lt;/code&gt; and confirm each one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider dashboards:&lt;/strong&gt; look at OpenAI, Anthropic, Bedrock and Gemini usage for spend or models you do not recognise.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of these turn up something odd, rotate every provider key, database password and MCP token the proxy could read, then rebuild the container from a clean image rather than cleaning it in place.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Exploitation details.&lt;/strong&gt; CISA does not say who is exploiting the bug or since when. Public reporting so far is the April–May honeypot activity. Treat newer campaign details as unconfirmed until a primary source publishes them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More LiteLLM advisories.&lt;/strong&gt; This is the second LiteLLM entry in the catalog in three months. Subscribe to the repository's security advisories if you run the proxy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design limits.&lt;/strong&gt; Obsidian also points out that stdio MCP servers configured by a &lt;code&gt;proxy_admin&lt;/code&gt; can still run code by design. That is not a CVE, but it is another reason to treat &lt;code&gt;proxy_admin&lt;/code&gt; as host-level access.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/ai-agent-identity-saas-access-blueprint" rel="noopener noreferrer"&gt;Your AI Agent Needs Its Own Identity: A SaaS Access Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/coding-agent-sandbox-saas-security" rel="noopener noreferrer"&gt;Your Coding Agent Needs a Sandbox: A SaaS Security Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/first-mcp-server-saas-founder-guide" rel="noopener noreferrer"&gt;Building Your First MCP Server: A SaaS Founder's Shortest Path to an AI Product&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If you run a LiteLLM proxy, steps 1 to 5 above fit in an afternoon and tell you whether this was ever exposed. If the review shows one shared gateway holding every provider key with a public admin page, that is an architecture question about how your AI features reach models, and the &lt;a href="https://somanathkhadanga.com/services/ai-saas-development" rel="noopener noreferrer"&gt;AI SaaS development&lt;/a&gt; service covers it. Bring your LiteLLM version, how the proxy is deployed, and who currently holds admin access.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/litellm-cve-2026-40217-exploited-guardrail-rce" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>nginx2root: Two HTTP/2 Remote Code Execution Bugs in nginx, and What to Do Today</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:34:50 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/nginx2root-two-http2-remote-code-execution-bugs-in-nginx-and-what-to-do-today-2046</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/nginx2root-two-http2-remote-code-execution-bugs-in-nginx-and-what-to-do-today-2046</guid>
      <description>&lt;p&gt;On November 18, 2026, nginx released &lt;a href="https://nginx.org/" rel="noopener noreferrer"&gt;1.30.7 (stable) and 1.31.9 (mainline)&lt;/a&gt;, fixing ten vulnerabilities. Two of them, nicknamed "nginx2root", let an unauthenticated attacker crash an nginx worker or run code on it over HTTP/2. One of the two has been in the code since nginx 1.9.5, released in 2015.&lt;/p&gt;

&lt;p&gt;If your SaaS self-hosts nginx in front of a Next.js, Node.js or API server, on a VM, in Docker or as a Kubernetes ingress, check it today. If you never run nginx yourself, patching is your hosting provider's job.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;F5, the company behind nginx, published advisories for both HTTP/2 bugs. Both score &lt;strong&gt;High 8.1 on CVSS 3.1 and Critical 9.2 on CVSS 4.0&lt;/strong&gt;. F5 lists no mitigation other than upgrading.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://my.f5.com/manage/s/article/K000163926" rel="noopener noreferrer"&gt;CVE-2026-123007&lt;/a&gt;&lt;/strong&gt;: an integer underflow in HTTP/2 flow control that can cause a heap buffer overflow. Affected: open-source nginx 1.9.5 to 1.30.6 and 1.31.0 to 1.31.8. It needs only HTTP/2 to be enabled. Wiz says it demonstrated code execution on nginx serving plain static files, with no backend and no third-party modules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://my.f5.com/manage/s/article/K000163928" rel="noopener noreferrer"&gt;CVE-2026-123633&lt;/a&gt;&lt;/strong&gt;: a use-after-free in HTTP/2. Affected: 1.19.7 to 1.31.8. It applies when nginx proxies HTTP/2 client requests to a backend and the worker is running low on &lt;code&gt;worker_connections&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;F5's wording is that code execution is possible when ASLR is disabled or can be bypassed. The &lt;a href="https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities" rel="noopener noreferrer"&gt;Wiz write-up&lt;/a&gt; says ASLR does not protect against these bugs in practice, because an attacker can read memory before attempting code execution.&lt;/p&gt;

&lt;p&gt;Three more fixes, also scored 9.2 by Wiz, need less common setups: HTTP/3 proxying (CVE-2026-121810), attacker-influenced upstream host names in the resolver (CVE-2026-123634), and the mail proxy (CVE-2026-113425). One more is broad but "only" a denial of service: &lt;a href="https://my.f5.com/manage/s/article/K000163930" rel="noopener noreferrer"&gt;CVE-2026-118899&lt;/a&gt;, an infinite loop that stops a worker from serving traffic. It affects any &lt;code&gt;listen ... ssl&lt;/code&gt; server with TLS 1.3 enabled, which is the default on most modern builds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is Anyone Exploiting It?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Not reported.&lt;/strong&gt; As of the November 18 coverage, neither F5 nor the research teams had reported attacks, and the CVEs were not in CISA's Known Exploited Vulnerabilities catalog. Proof-of-concept code is public on GitHub. Its own notes reportedly limit it to a freshly started local Docker container. Rapid7's published analysis describes an attack that needs a large volume of HTTP/2 traffic.&lt;/p&gt;

&lt;p&gt;Code that runs this way gets the nginx worker's privileges, not root. Reporting on Xint's research says a separate Linux kernel bug in SCTP could raise that to root. That is unconfirmed until a kernel advisory is published.&lt;/p&gt;

&lt;p&gt;Five teams found these bugs independently, so expect working exploits soon. This belongs in this week, not the next maintenance window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;p&gt;You are exposed if all three are true:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You run open-source nginx older than 1.30.7 (or a 1.31.x older than 1.31.9), or a distribution package without the backported fix.&lt;/li&gt;
&lt;li&gt;HTTP/2 is on: &lt;code&gt;http2&lt;/code&gt; in a &lt;code&gt;listen&lt;/code&gt; directive, or &lt;code&gt;http2 on;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;An attacker can reach that nginx over HTTP/2, directly or through a load balancer that passes HTTP/2 through.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Behind a CDN, what matters is whether the &lt;strong&gt;origin&lt;/strong&gt; nginx accepts HTTP/2 from whoever can reach it.&lt;/p&gt;

&lt;p&gt;F5's table also lists NGINX Plus (fixed in 37.0.8.1 and 37.3.0.1; no fix listed for R34 to R36), NGINX Ingress Controller (5.8.0, 2026-lts-r11) and NGINX Gateway Fabric (2.9.0). The community &lt;code&gt;ingress-nginx&lt;/code&gt; project is a separate codebase. Check its own releases.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every nginx.&lt;/strong&gt; Run &lt;code&gt;nginx -v&lt;/code&gt; on hosts and check &lt;code&gt;FROM nginx&lt;/code&gt; lines in Dockerfiles, sidecars and ingress charts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check HTTP/2 from outside:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl s_client -connect origin.example.com:443 -alpn h2 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; grep ALPN
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it prints &lt;code&gt;ALPN protocol: h2&lt;/code&gt;, HTTP/2 is on.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Docker: the official images had 1.31.9 and 1.30.7 tags, including Alpine, on release day. Rebuild with &lt;code&gt;docker build --pull&lt;/code&gt; and redeploy.&lt;/li&gt;
&lt;li&gt;Ubuntu: fixed packages shipped on November 19 in USN-9159-1. The &lt;a href="https://ubuntu.com/security/CVE-2026-123007" rel="noopener noreferrer"&gt;Ubuntu CVE page&lt;/a&gt; lists, for example, &lt;code&gt;1.24.0-2ubuntu7.20&lt;/code&gt; for 24.04 and &lt;code&gt;1.18.0-6ubuntu14.23&lt;/code&gt; for 22.04.&lt;/li&gt;
&lt;li&gt;Debian: the &lt;a href="https://security-tracker.debian.org/tracker/CVE-2026-123007" rel="noopener noreferrer"&gt;security tracker&lt;/a&gt; lists bookworm &lt;code&gt;1.22.1-9+deb12u11&lt;/code&gt; and trixie &lt;code&gt;1.26.3-3+deb13u11&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;RHEL: one report says no fixed nginx package was available as of November 20. That is unconfirmed, so check Red Hat's own errata.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restart, don't just reload.&lt;/strong&gt; A reload keeps the old binary running. Restart nginx fully, or use its live binary upgrade, and confirm the old workers have exited.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you can't upgrade yet, turn HTTP/2 off.&lt;/strong&gt; On 1.25.1 and later, set &lt;code&gt;http2 off;&lt;/code&gt; in each server block and remove &lt;code&gt;http2&lt;/code&gt; from &lt;code&gt;listen&lt;/code&gt; lines. On older versions, change &lt;code&gt;listen 443 ssl http2;&lt;/code&gt; to &lt;code&gt;listen 443 ssl;&lt;/code&gt;. This blocks only the two HTTP/2 bugs, so it buys time but doesn't replace the upgrade.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Verify You're Safe
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;nginx -v&lt;/code&gt; reports 1.30.7 or 1.31.9 or later. With distro packages, compare the full package version (&lt;code&gt;dpkg -l nginx&lt;/code&gt; or &lt;code&gt;rpm -q nginx&lt;/code&gt;) with the advisory, because a backport doesn't change the upstream version number.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;docker run --rm &amp;lt;your-image&amp;gt; nginx -v&lt;/code&gt; shows the fixed version, not a cached base layer.&lt;/li&gt;
&lt;li&gt;In the error logs, look for &lt;code&gt;worker process ... exited on signal&lt;/code&gt; and for core dumps. Also look for workers starting unexpected programs or making unusual outbound connections. A clean access log proves little, because HTTP/2 control frames aren't logged as requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Also This Week: The wfx-loot GitHub Campaign
&lt;/h2&gt;

&lt;p&gt;Starting November 10, an attacker used stolen credentials for 4,837 GitHub accounts to open probe pull requests in about 61,800 repositories. &lt;a href="https://www.aikido.dev/blog/compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousands-of-repositories" rel="noopener noreferrer"&gt;Aikido's analysis&lt;/a&gt; found that a CI secret stealer ran in at least 1,800 of them. The stealer takes Actions secrets, OIDC tokens and cloud credentials, then reverts its commit and deletes the run. How the credentials were stolen is unconfirmed.&lt;/p&gt;

&lt;p&gt;Check every repository your org can write to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Search for pull requests titled &lt;code&gt;docs: dependency audit notes&lt;/code&gt; and for branches named &lt;code&gt;wfx-docs&lt;/code&gt; or &lt;code&gt;chore/&lt;/code&gt; plus eight random characters.&lt;/li&gt;
&lt;li&gt;Look for commits named &lt;code&gt;ci: refresh build cache&lt;/code&gt; or &lt;code&gt;chore: add ci helper&lt;/code&gt;, and for gaps in workflow run numbers around November 10–12.&lt;/li&gt;
&lt;li&gt;If you find any: revoke that user's tokens, OAuth grants and SSH keys, and rotate every secret the workflows could read.&lt;/li&gt;
&lt;li&gt;Check for persistence that outlives rotation. On AWS, look for role trust policies opened to &lt;code&gt;"AWS": "*"&lt;/code&gt;. In Entra ID, look for federated credentials named &lt;code&gt;wfx-ci-*&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To limit the impact next time, give &lt;code&gt;id-token: write&lt;/code&gt; only to deploy jobs and require approval for workflow changes. Both are covered in our &lt;a href="https://somanathkhadanga.com/blog/github-actions-execution-policies-saas" rel="noopener noreferrer"&gt;GitHub Actions execution policy guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A CISA KEV listing or vendor reports of exploitation of CVE-2026-123007 or CVE-2026-123633.&lt;/li&gt;
&lt;li&gt;A Linux kernel advisory for the SCTP issue, and Red Hat errata for nginx.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/openssh-sshole-alpine-sshd-check" rel="noopener noreferrer"&gt;SSHole (CVE-2026-123158): Check Every Alpine Server and Image That Runs sshd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/nodejs-november-2026-security-release-http2-tls" rel="noopener noreferrer"&gt;Node.js's November 11 Security Release: Check HTTP/2, TLS and Your Version Today&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/nextjs-avif-windows-rce-exposure-audit" rel="noopener noreferrer"&gt;Two Critical Next.js RCEs: A Self-Hosting Exposure Audit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If you run your own nginx, steps 1 to 4 settle whether you are exposed. If the inventory turns up nginx versions nobody owns, images that are never rebuilt, or CI roles that can reach production, those are production-readiness gaps, not one-off patches. The &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; service covers that work. Bring your list of nginx hosts and images and who can change your CI workflows.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/nginx2root-cve-2026-123007-http2-rce-patch" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>security</category>
      <category>devops</category>
      <category>webdev</category>
    </item>
    <item>
      <title>PolinRider Is Rewriting GitHub Commits to Plant Malware: What SaaS Teams Should Check</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:33:29 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/polinrider-is-rewriting-github-commits-to-plant-malware-what-saas-teams-should-check-1i35</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/polinrider-is-rewriting-github-commits-to-plant-malware-what-saas-teams-should-check-1i35</guid>
      <description>&lt;p&gt;PolinRider is a malware campaign that researchers link to North Korea. It has moved from hijacking npm packages to editing GitHub repositories directly. Attackers take a developer's GitHub access, rewrite existing commits so they keep the original author, message and date, and force-push a small loader into the repository. Anyone who later clones the repo and runs its tests, build or dev server runs the loader.&lt;/p&gt;

&lt;p&gt;As of November 26, 2026, &lt;a href="https://thehackernews.com/2026/11/north-korea-linked-polinrider-poisons.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt; reports more than 7,600 affected repositories, citing Apiiro's count of 7,609. That is a researcher's figure, and this brief could not read Apiiro's report directly. If your team clones third-party repos, or if a developer's GitHub account could be taken over, this is worth an hour today.&lt;/p&gt;

&lt;p&gt;This week also brought &lt;a href="https://1password.com/blog/update-on-nov-2026-security-incident" rel="noopener noreferrer"&gt;1Password's November 25 statement&lt;/a&gt; about a breach that began the same way, with one employee's GitHub account. That is covered in the second half.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;The campaign has come in waves.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;npm, early November.&lt;/strong&gt; &lt;a href="https://www.sonatype.com/blog/polinrider-loader-reappears-in-hijacked-npm-packages" rel="noopener noreferrer"&gt;Sonatype reported on November 4&lt;/a&gt; that attackers published loaders in 12 releases across 10 hijacked npm packages on November 3. Most are under the &lt;code&gt;@adminide-stack&lt;/code&gt;, &lt;code&gt;@cdmbase&lt;/code&gt; and &lt;code&gt;@pubngo-stack&lt;/code&gt; scopes. The loader runs when the module loads, not through an install hook, so disabling install scripts does not stop it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub repositories, October to November.&lt;/strong&gt; Per The Hacker News, Apiiro counts 2,040 repos pushed between October 27 and November 6. The loader is hidden after hundreds of spaces on one line of a build config file, so a normal diff view can push it off-screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Python wave, found November 24.&lt;/strong&gt; &lt;a href="https://safedep.io/blog/polinrider-python-loader-ethereum-calldata" rel="noopener noreferrer"&gt;SafeDep&lt;/a&gt; found a Python version in 375 public repositories under 260 accounts. It hides in &lt;code&gt;conftest.py&lt;/code&gt; or in a small &lt;code&gt;utils&lt;/code&gt; package with files such as &lt;code&gt;utils/session.py&lt;/code&gt;, &lt;code&gt;utils/net.py&lt;/code&gt; and &lt;code&gt;utils/transport.py&lt;/code&gt;. It is not in any PyPI or npm package. It is planted in the repos themselves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New npm flags on November 27.&lt;/strong&gt; GitHub's advisory database added &lt;a href="https://github.com/advisories/GHSA-ghxr-rx67-45jh" rel="noopener noreferrer"&gt;GHSA-ghxr-rx67-45jh&lt;/a&gt; for &lt;code&gt;itsa-jsext&lt;/code&gt; 2.0.3. The Hacker News, citing OpenSourceMalware, ties that package and other &lt;code&gt;itsa-*&lt;/code&gt; packages to the campaign. GitHub's text is the standard malware notice: treat any machine that installed it as fully compromised.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In every wave the loader reads instructions from an Ethereum wallet, fetches JavaScript and runs it with Node. That gives the attacker remote control of the machine. Blockchain-hosted instructions are hard to take down, so blocking known C2 addresses is a stopgap, not a fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your organization's repositories&lt;/strong&gt;, if any developer with push access had their GitHub token, SSH key or session stolen. Forged commits look like normal history, so you can't rule this out by skimming the log.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anyone who cloned and ran a poisoned third-party repo:&lt;/strong&gt; a sample app, a starter kit, a fork you test against, or an interview project. Running &lt;code&gt;pytest&lt;/code&gt;, &lt;code&gt;npm run build&lt;/code&gt;, &lt;code&gt;npm run dev&lt;/code&gt; or Jest can be enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anyone whose lockfile, internal mirror or cache holds&lt;/strong&gt; one of the npm versions in Sonatype's list, or &lt;code&gt;itsa-jsext&lt;/code&gt; 2.0.3.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Production servers that only run built artifacts are less directly exposed. The risk is developer laptops and CI runners: the machines that hold GitHub tokens, cloud keys and &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Search your own repositories for the loader.&lt;/strong&gt; SafeDep publishes the wallet strings and loader calls to search for. Run this across every repo you own, including the full history:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   git log --all --oneline -S 0x3b1574417524c11a7403c4b232CAcBb320CceBC6
   grep -rniE &lt;span class="s1"&gt;'getAddressTransactions|eth_getTransactionByHash'&lt;/span&gt; --include=&lt;span class="s1"&gt;'*.py'&lt;/span&gt; --include=&lt;span class="s1"&gt;'*.js'&lt;/span&gt; --include=&lt;span class="s1"&gt;'*.cjs'&lt;/span&gt; --include=&lt;span class="s1"&gt;'*.mjs'&lt;/span&gt; .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also check any &lt;code&gt;conftest.py&lt;/code&gt; and top-level &lt;code&gt;utils/&lt;/code&gt; folder you did not write, and any config file with a single line far wider than the rest.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Look for force-pushes you did not expect.&lt;/strong&gt; In a clone, &lt;code&gt;git fetch&lt;/code&gt; prints &lt;code&gt;(forced update)&lt;/code&gt; when a branch was rewritten. In the GitHub organization audit log, look for force-push events on default branches over the last two months.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block force-pushes on protected branches.&lt;/strong&gt; Use a branch ruleset that blocks force pushes on &lt;code&gt;main&lt;/code&gt; and release branches. This is the control that stops a stolen token from rewriting history quietly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check lockfiles and mirrors&lt;/strong&gt; for the package versions in Sonatype's post and &lt;code&gt;itsa-jsext@2.0.3&lt;/code&gt;. Block them in Artifactory, Nexus, or whatever proxy you use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide whether the loader ran.&lt;/strong&gt; A hit in a lockfile or repo is not proof of execution. Check whether anyone ran tests, builds or dev servers from that checkout. SafeDep and Sonatype describe a detached &lt;code&gt;node -i&lt;/code&gt; or &lt;code&gt;node -e&lt;/code&gt; process with no window. Look for one on developer machines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If it ran, treat the machine as compromised.&lt;/strong&gt; From a different machine, rotate GitHub tokens and SSH keys, cloud credentials, npm tokens, AI provider keys, and anything in &lt;code&gt;.env&lt;/code&gt; files on that host. Sign out browser sessions. Then clean the affected repos and re-check their history.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the CI side, the controls in our &lt;a href="https://somanathkhadanga.com/blog/github-actions-workflow-lockfiles-saas" rel="noopener noreferrer"&gt;GitHub Actions workflow lockfiles guide&lt;/a&gt; limit what a single poisoned commit can reach.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Verify You Are Clean
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The searches in step 1 come back empty across all branches and tags, not just &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The audit log shows no force-pushes you can't explain, and branch rules now block them.&lt;/li&gt;
&lt;li&gt;No lockfile or mirror resolves a listed version.&lt;/li&gt;
&lt;li&gt;Every developer machine that ran code from a suspect checkout has had its credentials rotated.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A Second Case: 1Password's Backend Breach
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://1password.com/blog/update-on-nov-2026-security-incident" rel="noopener noreferrer"&gt;1Password says&lt;/a&gt; that on November 19, 2026, it began investigating after an attacker got into an employee's corporate GitHub account. The attacker copied source code from private repositories, reached the CI/CD system, and pushed malicious code to backend services that then downloaded customer administrative data.&lt;/p&gt;

&lt;p&gt;According to the statement, the data taken for a subset of users includes names and email addresses, account and user identifiers, sign-in times, public keys, SRP parameters, and tokens in some invitation, provisioning and account-recovery emails. 1Password says customer vaults, the keys that protect them, and account recovery keys were not affected, and that customers do not need to change anything in their accounts. It has rotated exposed internal credentials and lengthened the email verification codes that recovery tokens require. A root cause analysis is promised but not yet published, so how the account was taken is unconfirmed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do if your team uses 1Password:&lt;/strong&gt; expect phishing. Treat unexpected invitation, provisioning or recovery emails, texts and calls with suspicion. 1Password says it will never ask for your account password or Secret Key. The statement does not mention service account, Connect or CLI tokens. Unless 1Password updates its guidance, rotating them is your own call, not a requirement.&lt;/p&gt;

&lt;p&gt;The lesson is the same as PolinRider's: a developer's GitHub account can reach your source code, your CI/CD and, through CI, your production. Phishing-resistant sign-in, short-lived tokens, branch rules and CI permissions all limit how far one stolen account can reach.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Apiiro's full report and any updated repository counts.&lt;/li&gt;
&lt;li&gt;More &lt;code&gt;itsa-*&lt;/code&gt; or other npm packages flagged in GitHub's malware feed.&lt;/li&gt;
&lt;li&gt;1Password's root cause analysis, and any change to its guidance for service account or Connect tokens.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/github-actions-workflow-lockfiles-saas" rel="noopener noreferrer"&gt;GitHub Actions Workflow Lockfiles: A Safe Rollout Guide for SaaS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/shai-hulud-2-npm-worm-saas-defense" rel="noopener noreferrer"&gt;Shai-Hulud 2.0: The npm Worm Spreading Through SAP and Intercom Packages This Week&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/microsoft-agent-framework-pypi-compromise" rel="noopener noreferrer"&gt;Microsoft's agent-framework Package Was Hijacked on PyPI: What AI SaaS Teams Should Check&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If the searches come back clean and force-pushes are now blocked, what remains is routine hygiene. If you find a planted file, or you can't say what a stolen developer token could reach, that is a production readiness question. The &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; covers branch rules, CI permissions, token lifetimes and where secrets are kept. Bring your GitHub organization settings, your workflow files and a list of where your keys live.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/polinrider-github-repo-poisoning-check" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>github</category>
      <category>npm</category>
      <category>devops</category>
    </item>
    <item>
      <title>OpenAI Shuts Down GPT-5 and o3 on December 11: A SaaS Migration Guide</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:32:55 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/openai-shuts-down-gpt-5-and-o3-on-december-11-a-saas-migration-guide-1lk2</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/openai-shuts-down-gpt-5-and-o3-on-december-11-a-saas-migration-guide-1lk2</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm4ksvpq7vwcz188sanbb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm4ksvpq7vwcz188sanbb.png" alt="Diagram of a SaaS app's OpenAI calls moving from retiring GPT-5 and o3 models to their GPT-6 replacements through inventory, request fixes, testing and rollout" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/openai-gpt-5-o3-retirement-migration" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Six OpenAI models stop working in nine days. &lt;a href="https://developers.openai.com/api/docs/deprecations" rel="noopener noreferrer"&gt;OpenAI's deprecations page&lt;/a&gt; lists &lt;strong&gt;December 11, 2026&lt;/strong&gt; as the shutdown date for &lt;code&gt;gpt-5&lt;/code&gt;, &lt;code&gt;gpt-5-mini&lt;/code&gt;, &lt;code&gt;gpt-5-nano&lt;/code&gt;, &lt;code&gt;gpt-5-pro&lt;/code&gt;, &lt;code&gt;o3&lt;/code&gt; and &lt;code&gt;o3-pro&lt;/code&gt;, along with each one's dated snapshot. The notice went out on June 11, so many teams have had this on a list for months. It is still easy to miss a background job, an internal tool, or a model name stored in a tenant's settings.&lt;/p&gt;

&lt;p&gt;The replacements are not one-line swaps. They differ on which API supports tool calling, which reasoning settings they accept, how prompt caching is billed, and what they cost per token. This guide covers who is affected, what to change, how to test it, and how to roll out before the cutoff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which models shut down, and what replaces them
&lt;/h2&gt;

&lt;p&gt;From the deprecations page, checked on December 2, 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shutting down December 11&lt;/th&gt;
&lt;th&gt;Recommended replacement&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gpt-5&lt;/code&gt;, &lt;code&gt;gpt-5-2025-08-07&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gpt-5-mini&lt;/code&gt;, &lt;code&gt;gpt-5-mini-2025-08-07&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.1-terra&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gpt-5-nano&lt;/code&gt;, &lt;code&gt;gpt-5-nano-2025-08-07&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6-luna&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;gpt-5-pro&lt;/code&gt;, &lt;code&gt;gpt-5-pro-2025-10-06&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gpt-6.2-sol&lt;/code&gt; with &lt;code&gt;reasoning.mode: pro&lt;/code&gt;, Responses API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;o3&lt;/code&gt;, &lt;code&gt;o3-2025-04-16&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;o3-pro&lt;/code&gt;, &lt;code&gt;o3-pro-2025-06-10&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gpt-6.2-sol&lt;/code&gt; with &lt;code&gt;reasoning.mode: pro&lt;/code&gt;, Responses API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;OpenAI defines a shut-down model as one that "no longer accepts requests through the standard API." The page mentions dedicated capacity through sales for continued access after a shutdown date. For most SaaS teams, that is not a realistic plan B nine days out.&lt;/p&gt;

&lt;p&gt;This date applies to the OpenAI API. If you call OpenAI models through a cloud provider, check that provider's lifecycle page. This guide does not cover their dates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who is affected
&lt;/h2&gt;

&lt;p&gt;You are affected if any production code, scheduled job, evaluation script or internal tool sends one of the model IDs above. The places teams commonly miss:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Aliases.&lt;/strong&gt; Code that sends &lt;code&gt;gpt-5&lt;/code&gt; or &lt;code&gt;o3&lt;/code&gt; without a date is just as affected as code that pins the snapshot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stored model names.&lt;/strong&gt; Per-tenant settings, feature flags, admin panels and database rows that hold a model string.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rarely run jobs.&lt;/strong&gt; Monthly reports, backfills and re-embedding or re-summarising pipelines that nobody will notice failing until month end.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Batch jobs.&lt;/strong&gt; A batch submitted near the cutoff may still be running on December 11. Finish or resubmit long batches on the new model before then.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Third-party wrappers.&lt;/strong&gt; Agent frameworks and gateways with a default model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Find every call before you change any
&lt;/h2&gt;

&lt;p&gt;Start with data, then code.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Usage by model.&lt;/strong&gt; Check usage in the OpenAI platform, broken down by model, project and API key where your setup allows, to see what still sends traffic to the six models. That tells you which services to chase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask the API.&lt;/strong&gt; The &lt;a href="https://developers.openai.com/api/reference/resources/models/methods/list" rel="noopener noreferrer"&gt;List models endpoint&lt;/a&gt; returns an optional &lt;code&gt;shutdown_date&lt;/code&gt; on each model. OpenAI recommends checking it to monitor shutdowns. A small CI check that fails when a configured model has a shutdown date inside 60 days catches the next one early.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search the code and config.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -rnE &lt;span class="s2"&gt;"gpt-5(-mini|-nano|-pro)?(-20[0-9]{2}-[0-9]{2}-[0-9]{2})?[\"']|[\"']o3(-pro)?(-20[0-9]{2}-[0-9]{2}-[0-9]{2})?[\"']"&lt;/span&gt; \
  --include=*.&lt;span class="o"&gt;{&lt;/span&gt;ts,tsx,js,mjs,py,json,yaml,yml,env.example&lt;span class="o"&gt;}&lt;/span&gt; .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the same search against database exports or settings tables if model names live there. Do not stop at the first hit per service; record every call site with its owner, the API it uses (Chat Completions or Responses), and whether it uses tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks if you only change the model ID
&lt;/h2&gt;

&lt;p&gt;These come from the &lt;a href="https://developers.openai.com/api/docs/guides/latest-model" rel="noopener noreferrer"&gt;GPT-6.2 migration quickstart&lt;/a&gt; and the replacement model pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tool calling needs the Responses API
&lt;/h3&gt;

&lt;p&gt;GPT-6.2 Sol and GPT-6.1 Terra support Chat Completions, but tool calling requires the Responses API. GPT-6 Luna supports function calling in Chat Completions only with &lt;code&gt;reasoning_effort&lt;/code&gt; set to &lt;code&gt;none&lt;/code&gt;. The &lt;code&gt;gpt-5&lt;/code&gt;, &lt;code&gt;gpt-5-mini&lt;/code&gt;, &lt;code&gt;gpt-5-nano&lt;/code&gt; and &lt;code&gt;o3&lt;/code&gt; model pages all list Chat Completions support, and many integrations use function calling there. A common failure is a &lt;code&gt;gpt-5-mini&lt;/code&gt; support bot on Chat Completions with tools that cannot be moved to Terra without also moving to Responses.&lt;/p&gt;

&lt;p&gt;If that is you, the API migration is the real work. Budget for it separately from the model change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reasoning effort values change
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;gpt-5&lt;/code&gt; accepted &lt;code&gt;minimal&lt;/code&gt;, &lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt; and &lt;code&gt;high&lt;/code&gt;. The &lt;a href="https://developers.openai.com/api/docs/guides/reasoning" rel="noopener noreferrer"&gt;reasoning guide&lt;/a&gt; says GPT-6.2 Sol rejects &lt;code&gt;none&lt;/code&gt;, and the migration quickstart says to use &lt;code&gt;low&lt;/code&gt; if you currently use &lt;code&gt;none&lt;/code&gt; or &lt;code&gt;minimal&lt;/code&gt;. Terra and Luna accept &lt;code&gt;none&lt;/code&gt; through &lt;code&gt;max&lt;/code&gt; and default to &lt;code&gt;medium&lt;/code&gt;. If you never set effort, you now get &lt;code&gt;medium&lt;/code&gt; by default, which may cost more and run slower than what you had.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sampling parameters are rejected
&lt;/h3&gt;

&lt;p&gt;For Chat Completions, omit &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt;, &lt;code&gt;logprobs&lt;/code&gt; and &lt;code&gt;top_logprobs&lt;/code&gt;. For Responses, omit &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt; and &lt;code&gt;top_logprobs&lt;/code&gt;, and remove &lt;code&gt;message.output_text.logprobs&lt;/code&gt; from &lt;code&gt;include&lt;/code&gt;. Code that copied a &lt;code&gt;temperature: 0&lt;/code&gt; habit from older models needs that line removed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pro models become a mode
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;gpt-5-pro&lt;/code&gt; and &lt;code&gt;o3-pro&lt;/code&gt; have no direct successor model ID. You call &lt;code&gt;gpt-6.2-sol&lt;/code&gt; with &lt;code&gt;reasoning: { mode: "pro" }&lt;/code&gt; in the Responses API. The reasoning guide says pro mode bills the extra model work at the selected model's standard token rates, so the cost profile is different from the flat-priced pro models.&lt;/p&gt;

&lt;h3&gt;
  
  
  Flex processing is not available on Sol
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://developers.openai.com/api/docs/guides/flex-processing" rel="noopener noreferrer"&gt;Flex processing guide&lt;/a&gt; says Flex is unavailable on GPT-6.2 Astra and Sol. If a &lt;code&gt;gpt-5&lt;/code&gt; or &lt;code&gt;o3&lt;/code&gt; workload sends &lt;code&gt;service_tier: "flex"&lt;/code&gt;, plan for Batch or for background mode with a discounted completion window instead. Luna still lists Flex.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prompt caching works differently
&lt;/h3&gt;

&lt;p&gt;The migration quickstart says GPT-6.2 models append top-level &lt;code&gt;instructions&lt;/code&gt; after &lt;code&gt;input&lt;/code&gt;, and the &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;prompt caching guide&lt;/a&gt; says those tokens are billed at the uncached rate even on a cache hit. Move reusable instructions into a &lt;code&gt;developer&lt;/code&gt; message at the start of &lt;code&gt;input&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two more changes: &lt;code&gt;prompt_cache_retention&lt;/code&gt; is replaced by &lt;code&gt;prompt_cache_options.ttl&lt;/code&gt; (&lt;code&gt;"30m"&lt;/code&gt; by default), and newer models charge for cache writes (1.25x input for 30 minutes, 2.5x for 12 hours) where older models did not. Our post on &lt;a href="https://somanathkhadanga.com/blog/openai-12-hour-prompt-caching-saas" rel="noopener noreferrer"&gt;OpenAI's 12-hour prompt caching&lt;/a&gt; covers when longer retention pays for itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare costs before you commit
&lt;/h2&gt;

&lt;p&gt;List prices per million tokens at Standard processing, from each model's page on December 2:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Retiring model&lt;/th&gt;
&lt;th&gt;Input / output&lt;/th&gt;
&lt;th&gt;Replacement&lt;/th&gt;
&lt;th&gt;Input / output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$1.25 / $10&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$2 / $10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-5-mini&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$0.25 / $2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.1-terra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$1 / $5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-5-nano&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$0.05 / $0.40&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6-luna&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$0.10 / $0.50&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Verified&lt;/strong&gt; list prices only. They do not tell you the cost per request, because token counts, reasoning tokens and cache hit rates all change with the model. The gap that deserves attention is &lt;code&gt;gpt-5-mini&lt;/code&gt; to Terra: four times the input price and two and a half times the output price.&lt;/p&gt;

&lt;p&gt;For high-volume, simple tasks that ran on &lt;code&gt;gpt-5-mini&lt;/code&gt; (classification, extraction, short summaries), it is worth evaluating Luna as well as Terra. That is our suggestion, not OpenAI's recommendation; OpenAI points mini users at Terra. Pick per workload using the approach in our guide to &lt;a href="https://somanathkhadanga.com/blog/gpt-6-sol-luna-saas-model-routing" rel="noopener noreferrer"&gt;routing workloads across GPT-6 models&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A step-by-step migration
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Centralise the model ID
&lt;/h3&gt;

&lt;p&gt;Before changing anything, make sure each workload reads its model from one place, such as a config value or environment variable per workload, not a string literal per call. This step makes the next retirement a config change.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Fix the request shape
&lt;/h3&gt;

&lt;p&gt;An illustrative before and after for a &lt;code&gt;gpt-5&lt;/code&gt; call on Chat Completions with a tool. It was not run against the API; field names come from OpenAI's migration and reasoning guides.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Before: gpt-5 on Chat Completions&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"gpt-5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reasoning_effort&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"minimal"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"system"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SYSTEM_PROMPT&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;userText&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// After: gpt-6.2-sol on the Responses API&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;responses&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SUPPORT_AGENT_MODEL&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"gpt-6.2-sol"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reasoning&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;effort&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"low"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// "minimal" and "none" are not accepted on Sol&lt;/span&gt;
  &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"developer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SYSTEM_PROMPT&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// cacheable prefix&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;userText&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;responsesTools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// tool definitions use the Responses format&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tool definitions and tool results have a different shape in the Responses API, and responses are read from &lt;code&gt;output&lt;/code&gt; items rather than &lt;code&gt;choices&lt;/code&gt;. Port the parsing code and tests along with the request.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Set effort explicitly
&lt;/h3&gt;

&lt;p&gt;Do not rely on the default. Start each workload at the lowest effort that passes your quality bar, record the setting next to the model ID, and confirm your tier's rate limits for the new model cover peak traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to test it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Replay real traffic.&lt;/strong&gt; OpenAI's own guidance is to run representative requests against both models and compare outputs, latency and cost. Take 50 to 200 saved inputs per workload (an &lt;strong&gt;illustrative&lt;/strong&gt; range; use what you have) and run both.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check structure, not just text.&lt;/strong&gt; Parse every output the way production does. Tool-call arguments, JSON schemas and anything a downstream system reads should pass the same validators.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch for style shifts.&lt;/strong&gt; The migration guide says GPT-6.2 writes more concisely by default. If prompts say "be concise", outputs may get shorter than users expect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure cost per request,&lt;/strong&gt; including reasoning tokens and cache writes, not just list price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run agent loops end to end.&lt;/strong&gt; If you dropped earlier messages or tool calls between turns, the guide notes GPT-6.2 drops reasoning items after prefix edits, which can lower quality and raise token use. Our checklist for &lt;a href="https://somanathkhadanga.com/blog/how-to-evaluate-ai-agents-before-production" rel="noopener noreferrer"&gt;evaluating AI agents before production&lt;/a&gt; covers what to measure.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Roll out before the cutoff
&lt;/h2&gt;

&lt;p&gt;Move one workload at a time, starting with the lowest-risk one. Use a flag or percentage split so each workload can go back to the old model while it still exists. Aim to have all traffic on the new models by around December 8, which leaves a few working days before the shutdown to catch anything the inventory missed. Watch error rates for 400s, which usually mean an unsupported parameter, and watch daily spend per workload.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rollback after December 11
&lt;/h2&gt;

&lt;p&gt;Until December 11, rollback is a flag flip back to the old model. After it, there is nothing to roll back to. A deployment from before the migration will send requests that fail. Before the cutoff, make sure your last known-good deployment already uses the new models, and keep an alternative within the GPT-6 family (for example Sol for a Terra workload) as the fallback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next on the list
&lt;/h2&gt;

&lt;p&gt;The same page lists more shutdowns in the next two months: &lt;code&gt;tts-1&lt;/code&gt;, &lt;code&gt;tts-1-hd&lt;/code&gt; and &lt;code&gt;gpt-4o-mini-tts&lt;/code&gt; on January 6, 2027; GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini on January 14; and the older realtime and audio models on January 20. Self-serve fine-tuning job creation also ends on December 15, 2026, earlier than the January 6 date OpenAI first announced. If you are already touching model configuration this week, inventory those IDs at the same time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What happens to gpt-5 and o3 requests after December 11, 2026?
&lt;/h3&gt;

&lt;p&gt;OpenAI's deprecations page defines a shut-down model as one that no longer accepts requests through the standard API. Calls to gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro, including their dated snapshots, should be expected to fail from that date. OpenAI mentions dedicated capacity through its sales team as the only route to continued access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I just swap gpt-5-mini for gpt-6.1-terra?
&lt;/h3&gt;

&lt;p&gt;Only if the request is compatible. GPT-6.1 Terra requires the Responses API for tool calling, so Chat Completions code that uses function calling has to move first. List prices are also higher: Terra is $1 input and $5 output per million tokens, against $0.25 and $2 for gpt-5-mini.&lt;/p&gt;

&lt;h3&gt;
  
  
  What replaces gpt-5-pro and o3-pro?
&lt;/h3&gt;

&lt;p&gt;OpenAI recommends gpt-6.2-sol with reasoning.mode set to pro, in the Responses API. Pro mode bills the extra model work at Sol's standard token rates, so measure cost per request on real prompts before switching.&lt;/p&gt;

&lt;h2&gt;
  
  
  When this is a small job, and when it is not
&lt;/h2&gt;

&lt;p&gt;It is a small job when the retiring models are called from one or two places, already through the Responses API, without sampling settings or Flex, and you have saved examples to compare. A developer can change, test and ship that in a day or two.&lt;/p&gt;

&lt;p&gt;It is a bigger job when tool-calling code still runs on Chat Completions, when model names live in tenant settings, or when nobody has a baseline for quality and cost. The same pattern came up in our &lt;a href="https://somanathkhadanga.com/blog/claude-sonnet-4-5-retirement-migration" rel="noopener noreferrer"&gt;Claude Sonnet 4.5 retirement guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/gpt-6-sol-luna-saas-model-routing" rel="noopener noreferrer"&gt;GPT-6 Sol and Luna for SaaS: Route Workloads, Don't Replace Everything&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/openai-12-hour-prompt-caching-saas" rel="noopener noreferrer"&gt;OpenAI 12-Hour Prompt Caching: Pay More Only When Reuse Is Real&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/claude-sonnet-4-5-retirement-migration" rel="noopener noreferrer"&gt;Claude Sonnet 4.5 Retires November 30: A SaaS Migration Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/openai-agent-builder-sunset-ai-saas-portability" rel="noopener noreferrer"&gt;Agent Builder Is Winding Down: Make Your AI SaaS Portable&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If your product still sends traffic to any of the six models, pull the usage report and run the code search today, then list each call site with its API, tools and owner. Teams that find tool calling on Chat Completions, pro models in core workflows, or model IDs stored per tenant often want a second pair of hands for the week. Our &lt;a href="https://somanathkhadanga.com/services/ai-saas-development" rel="noopener noreferrer"&gt;AI SaaS development service&lt;/a&gt; covers this kind of migration, from the inventory to evaluation and a staged rollout.&lt;/p&gt;

</description>
      <category>openai</category>
      <category>ai</category>
      <category>api</category>
      <category>saas</category>
    </item>
    <item>
      <title>React2STEAL: Unpatched Next.js Servers Are Leaking Secrets to Public GitHub Repos</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:32:38 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/react2steal-unpatched-nextjs-servers-are-leaking-secrets-to-public-github-repos-1mbd</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/react2steal-unpatched-nextjs-servers-are-leaking-secrets-to-public-github-repos-1mbd</guid>
      <description>&lt;p&gt;On November 18, 2026, OpenSourceMalware published research on a campaign it calls &lt;a href="https://opensourcemalware.com/blog/react2steal-github-actions" rel="noopener noreferrer"&gt;React2STEAL&lt;/a&gt;. GitHub Actions workflows in what look like hijacked GitHub accounts scan the internet for Next.js servers. They exploit two bugs that were fixed long ago and commit whatever they steal, including environment variables, &lt;code&gt;.env&lt;/code&gt; files, cloud credentials and AI provider keys, to public repositories.&lt;/p&gt;

&lt;p&gt;The bugs are not new. What's new is the scale and the fact that stolen secrets are published in the open. If you self-host a Next.js app and haven't touched its dependencies in a while, check it today. If the check turns up anything, assume every secret that server could read has already leaked.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;According to the research, the operator commits a list of hosts to a repository and starts a workflow, &lt;code&gt;.github/workflows/scan.yml&lt;/code&gt;, by hand on GitHub-hosted runners. A prefilter picks likely Next.js hosts. Scanners then try three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React2Shell, &lt;a href="https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components" rel="noopener noreferrer"&gt;CVE-2025-55182&lt;/a&gt;&lt;/strong&gt;: unauthenticated remote code execution in React Server Components, disclosed on December 3, 2025. The research says seven variants are tried.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Next.js middleware bypass, &lt;a href="https://github.com/advisories/GHSA-f82v-jwr5-mffw" rel="noopener noreferrer"&gt;CVE-2025-29927&lt;/a&gt;&lt;/strong&gt;: a crafted &lt;code&gt;x-middleware-subrequest&lt;/code&gt; header skips middleware, including auth checks done there. It was fixed in March 2025.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An SSRF through &lt;code&gt;/_next/image&lt;/code&gt;&lt;/strong&gt; that points the image optimizer at the cloud metadata address (&lt;code&gt;169.254.169.254&lt;/code&gt;) to read AWS role credentials.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When code execution works, a payload (&lt;code&gt;bin/fast_recon.js&lt;/code&gt;) collects environment variables, cloud and Kubernetes credentials and network details. Newer variants also take &lt;code&gt;.env&lt;/code&gt; and config files. The research says it tests the stolen AI provider keys (OpenAI, Anthropic, Gemini and others) from the victim's own server, so that traffic comes from your IP, not the attacker's. The workflow then commits the results to the same public repository.&lt;/p&gt;

&lt;p&gt;The numbers below come from the research and are described as minimums: 45 repositories across 44 GitHub accounts, at least 1,281 victim hostnames across about 1,100 domains, and new results committed about every 11 minutes as of November 17. A &lt;a href="https://blog.gitguardian.com/react2steal-hijacked-github-accounts-exploit-react2shell-and-publish-stolen-secrets/" rel="noopener noreferrer"&gt;GitGuardian write-up&lt;/a&gt; on November 20 repeats these findings. The research says the same accounts appear in the wfx-loot campaign from earlier this month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not confirmed as of November 28:&lt;/strong&gt; whether GitHub has taken the repositories down, and who runs the campaign. Neither source says. Deleting a repository also doesn't remove copies that were already cloned or forked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;p&gt;You're in scope if you &lt;strong&gt;run Next.js yourself&lt;/strong&gt; (a VM, Docker, Kubernetes or a platform that runs &lt;code&gt;next start&lt;/code&gt;) and any of these is true:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;React Server Components packages on a vulnerable version.&lt;/strong&gt; &lt;code&gt;react-server-dom-webpack&lt;/code&gt;, &lt;code&gt;-turbopack&lt;/code&gt; or &lt;code&gt;-parcel&lt;/code&gt; at 19.0.0, 19.1.0, 19.1.1 or 19.2.0. Fixed in 19.0.1, 19.1.2 and 19.2.1. Next.js bundles these packages, so the version of &lt;code&gt;next&lt;/code&gt; is what counts. The React advisory lists minimum fixed Next.js releases per line, for example 15.5.10, 16.0.11 and 16.1.5, and 14.2.35 for apps on 13.3 to 14.x. Later December 2025 fixes moved those minimums up, so take the newest patch on your line rather than the minimum.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;next&lt;/code&gt; older than 12.3.5, 13.5.9, 14.2.25 or 15.2.3&lt;/strong&gt;, and auth or access control in middleware. That's the CVE-2025-29927 range from the &lt;a href="https://github.com/advisories/GHSA-f82v-jwr5-mffw" rel="noopener noreferrer"&gt;GitHub advisory&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The image optimizer can reach the metadata endpoint.&lt;/strong&gt; For example, an EC2 or ECS host that still allows IMDSv1, with &lt;code&gt;images.remotePatterns&lt;/code&gt; broad enough to allow it. The research doesn't say which Next.js configurations let this request through, so treat broad remote patterns on AWS as a risk.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Apps that only export static files aren't exposed to the first two bugs, since there is no server to attack. For managed hosting, check your provider's own statement on each CVE instead of assuming.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every running Next.js.&lt;/strong&gt; Check each production image and host, not just the repo. Run &lt;code&gt;npm ls next react-server-dom-webpack react-server-dom-turbopack&lt;/code&gt; (or the &lt;code&gt;pnpm why&lt;/code&gt; equivalent) in each app. Look for apps that were deployed once and never rebuilt: internal admin tools, marketing sites, staging.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade to the newest patch on your line&lt;/strong&gt;, rebuild the image without cached layers, and redeploy. If you're on a line that no longer gets fixes, move to a supported line instead of waiting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Until every app is patched, reject the header at the edge.&lt;/strong&gt; Strip or block &lt;code&gt;x-middleware-subrequest&lt;/code&gt; on incoming requests at your proxy, load balancer or WAF. Both sources recommend this. It only covers CVE-2025-29927, not React2Shell.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the metadata route.&lt;/strong&gt; On AWS, require IMDSv2 on every instance and launch template. Narrow &lt;code&gt;images.remotePatterns&lt;/code&gt; to the hosts you actually serve images from.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search your logs.&lt;/strong&gt; The research gives two request patterns: &lt;code&gt;x-middleware-subrequest&lt;/code&gt; repeated five times in one header, and &lt;code&gt;/_next/image?url=&lt;/code&gt; requests pointing at &lt;code&gt;169.254.169.254&lt;/code&gt;. Also look for multipart POSTs with a &lt;code&gt;Next-Action&lt;/code&gt; header on routes that don't normally get them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If anything was vulnerable while internet-facing, rotate.&lt;/strong&gt; Treat every secret the server process could read as exposed: database URLs, Stripe keys, cloud credentials, OAuth secrets, webhook signing keys, and AI provider keys. Rotate first, then check usage dashboards (especially AI provider spend) for activity you don't recognise.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Verify You're Safe
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npm ls next&lt;/code&gt; in each &lt;strong&gt;built image&lt;/strong&gt;, not only the lockfile, shows a patched release on your line.&lt;/li&gt;
&lt;li&gt;A test request with &lt;code&gt;x-middleware-subrequest&lt;/code&gt; set is rejected or stripped at the edge. Run it against your own staging host.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;aws ec2 describe-instances&lt;/code&gt; shows &lt;code&gt;HttpTokens: required&lt;/code&gt; for the hosts that run Next.js.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check whether you're already in the leaked data.&lt;/strong&gt; GitHub code search for your own domain names, hostnames or distinctive environment variable names, alongside the markers the research lists (for example &lt;code&gt;fast_recon.js&lt;/code&gt; or the &lt;code&gt;wfx-docs&lt;/code&gt; branch), will show if your data was committed to one of these repos. If you find a hit, rotate first. Don't download or share the files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check your own GitHub org.&lt;/strong&gt; The repos belong to hijacked accounts, so look for repositories named like &lt;code&gt;ci-wk-&amp;lt;number&amp;gt;&lt;/code&gt;, workflows you didn't write, or &lt;code&gt;workflow_dispatch&lt;/code&gt; runs nobody started.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Update, December 2: A Second Campaign, React2Keys
&lt;/h2&gt;

&lt;p&gt;On November 30, CloudSEK published research on a separate campaign it calls &lt;a href="https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft" rel="noopener noreferrer"&gt;React2Keys&lt;/a&gt;. It uses the same React2Shell bug (CVE-2025-55182), finding Next.js hosts through Certificate Transparency logs. CloudSEK says the campaign took more than 50,000 credentials from over 19,000 victims, including the CI/CD, cloud and AI infrastructure of more than 400 organizations. Those numbers are the researchers' claims, and we haven't verified them. The research doesn't mention React2STEAL, and nothing public links the two campaigns.&lt;/p&gt;

&lt;p&gt;The patch and rotation steps above apply unchanged. React2Keys adds one persistence check: CloudSEK reports an attacker SSH key with the comment &lt;code&gt;bluelocale-foothold&lt;/code&gt; appended to &lt;code&gt;authorized_keys&lt;/code&gt;. On any host that ran a vulnerable Next.js build, search every &lt;code&gt;authorized_keys&lt;/code&gt; file for that comment and remove keys you don't recognize. Then review cron jobs and recent SSH logins, and rotate secrets even if the search finds nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A statement from GitHub on takedowns or account recovery.&lt;/li&gt;
&lt;li&gt;New waves. The research describes three since October, and the code has been changed between them.&lt;/li&gt;
&lt;li&gt;Whether React2Shell exploitation gets new CVE or KEV entries, or more scanning infrastructure moves onto CI platforms.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/nextjs-avif-windows-rce-exposure-audit" rel="noopener noreferrer"&gt;Two Critical Next.js RCEs: A Self-Hosting Exposure Audit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/vercel-security-incident-production-readiness" rel="noopener noreferrer"&gt;What the Vercel Security Incident Should Teach SaaS Teams About Production Readiness&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/github-actions-workflow-lockfiles-saas" rel="noopener noreferrer"&gt;GitHub Actions Workflow Lockfiles: A Safe Rollout Guide for SaaS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;Steps 1 to 5 tell you whether you were exposed. If the inventory turns up Next.js apps nobody owns, images that never get rebuilt, or secrets shared across every environment, the fix is a patch policy and a rotation plan, not a one-off upgrade. The &lt;a href="https://somanathkhadanga.com/services/nextjs-development" rel="noopener noreferrer"&gt;Next.js development&lt;/a&gt; service covers upgrades and the hardening around them. Bring your list of apps, where each one runs, and its current &lt;code&gt;next&lt;/code&gt; version.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/react2steal-nextjs-secret-theft-check" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>security</category>
      <category>react</category>
      <category>devops</category>
    </item>
    <item>
      <title>node-tar's 18 Security Advisories: The Fix Is a Major Upgrade. What to Do Today</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:31:29 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/node-tars-18-security-advisories-the-fix-is-a-major-upgrade-what-to-do-today-1b69</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/node-tars-18-security-advisories-the-fix-is-a-major-upgrade-what-to-do-today-1b69</guid>
      <description>&lt;p&gt;Early on December 2, 2026, GitHub published 18 reviewed security advisories for &lt;code&gt;tar&lt;/code&gt;, the npm package better known as node-tar. Seventeen are rated high and one medium. Almost all of them are fixed only in &lt;strong&gt;tar 8&lt;/strong&gt;, a new major version with a different API that needs Node.js 22 or later. The maintainer's README says old versions get no fixes.&lt;/p&gt;

&lt;p&gt;node-tar is one of the most installed packages on npm: &lt;a href="https://www.npmjs.com/package/tar" rel="noopener noreferrer"&gt;about 113 million downloads&lt;/a&gt; in the week of November 24–30. Most teams never import it directly. It reaches them through the npm CLI, node-gyp and other build tools. If your SaaS extracts archives that users or the internet can supply, check today. If tar only reaches you through tooling, there is less to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;The advisories (CVE-2026-140234 to CVE-2026-140252) fall into three groups, all listed in the &lt;a href="https://github.com/advisories?query=tar+ecosystem%3Anpm" rel="noopener noreferrer"&gt;GitHub Advisory Database&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Symbolic links escaping the extraction folder (7 advisories).&lt;/strong&gt; node-tar promises that link entries can't point outside the folder you extract into. Its check was lexical, so chains of links in the same archive got past it. &lt;a href="https://github.com/advisories/GHSA-gvrf-jx37-rjv5" rel="noopener noreferrer"&gt;GHSA-gvrf-jx37-rjv5&lt;/a&gt; shows an archive that first creates &lt;code&gt;l1 -&amp;gt; .&lt;/code&gt; and then &lt;code&gt;esc -&amp;gt; l1/../outside.txt&lt;/code&gt;. The path looks inside the folder but resolves to its parent, and node-tar prints no warning. Other variants use backslashes on non-Windows hosts, paths ending in &lt;code&gt;/.&lt;/code&gt;, and nested links.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Header parsing tricks (6 advisories).&lt;/strong&gt; Flaws in how node-tar read PAX and GNU headers let an archive forge an entry's path, link target or size, or hide one file inside another's metadata. In &lt;a href="https://github.com/advisories/GHSA-mpg7-vg3p-wc3m" rel="noopener noreferrer"&gt;GHSA-mpg7-vg3p-wc3m&lt;/a&gt;, a newline in a PAX value creates a fake record that overrides the entry's real path. The reporter says they used it on a real Windows machine to overwrite &lt;code&gt;package.json&lt;/code&gt; inside an installed npm package and run an injected &lt;code&gt;postinstall&lt;/code&gt; script.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crashes and hangs (5 advisories).&lt;/strong&gt; Small crafted archives that use up memory or CPU, throw an uncaught exception, or deadlock async and sync extraction for good.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CVSS 4.0 scores run from 6.9 to 7.2. The advisories don't report any exploitation, and none of the CVEs were in CISA's Known Exploited Vulnerabilities catalog as of its November 30 update.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fixed versions&lt;/strong&gt; (from the advisory ranges):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;16 advisories: fixed in &lt;strong&gt;8.0.0&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The memory exhaustion bug (GHSA-7c32-79xj-j3jp): fixed in &lt;strong&gt;8.0.2&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The non-finite PAX size bug (GHSA-ph3c-p786-j4rp): the only one with a 7.x fix, &lt;strong&gt;7.5.24&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The current release is 8.0.5 (December 2). Some advisories list every version below 8.0.0. Others start at 7.0.0, 7.5.0, 7.5.5 or 7.5.22, depending on when the bug was introduced. In practice, &lt;strong&gt;any tar 7 or older is affected by most of them&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You are most exposed if your code or a runtime dependency calls &lt;code&gt;tar.x()&lt;/code&gt;, &lt;code&gt;tar.extract()&lt;/code&gt;, &lt;code&gt;Unpack&lt;/code&gt; or &lt;code&gt;Parser&lt;/code&gt; on an archive you don't control. Common examples are import or restore features, plugin and theme installers, template or starter downloaders, backup restore jobs, and workers that unpack customer uploads.&lt;/p&gt;

&lt;p&gt;Your &lt;strong&gt;build tooling&lt;/strong&gt; is also on tar 7. The latest npm CLI (12.2.3) depends on &lt;code&gt;tar ^7.5.22&lt;/code&gt;, &lt;code&gt;pacote&lt;/code&gt; on &lt;code&gt;^7.4.3&lt;/code&gt; and &lt;code&gt;node-gyp&lt;/code&gt; on &lt;code&gt;^7.5.7&lt;/code&gt;, according to their package metadata on the npm registry. As of today no npm release ships tar 8, and the open 12.2.4 release PR doesn't bump it. &lt;strong&gt;Not confirmed:&lt;/strong&gt; how many of these bugs can be reached through &lt;code&gt;npm install&lt;/code&gt; itself, given the options npm passes to tar. The advisories don't say, and neither npm nor GitHub has published a statement.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find every copy.&lt;/strong&gt; Run &lt;code&gt;npm ls tar --all&lt;/code&gt; (or &lt;code&gt;pnpm why tar&lt;/code&gt;, or &lt;code&gt;yarn why tar&lt;/code&gt;) in each service and worker. Note which copies are direct dependencies of your code and which arrive through tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find who extracts untrusted archives.&lt;/strong&gt; Search your code for &lt;code&gt;from 'tar'&lt;/code&gt;, &lt;code&gt;require('tar')&lt;/code&gt;, &lt;code&gt;tar.x(&lt;/code&gt;, &lt;code&gt;extract(&lt;/code&gt; and &lt;code&gt;new Unpack&lt;/code&gt;. For each hit, ask where the archive comes from. If a user, a customer or a URL decides what is in it, that code path matters most.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade those direct uses to &lt;code&gt;tar@^8.0.5&lt;/code&gt;.&lt;/strong&gt; Plan this as a port, not a version bump. tar 8 needs Node.js 22 or later and has no callbacks and no Node streams: commands return promises, &lt;code&gt;sync: true&lt;/code&gt; becomes &lt;code&gt;extractSync()&lt;/code&gt; and the other &lt;code&gt;*Sync&lt;/code&gt; functions, and only the &lt;code&gt;tar&lt;/code&gt;, &lt;code&gt;tar/core&lt;/code&gt;, &lt;code&gt;tar/raw&lt;/code&gt; and &lt;code&gt;tar/core/raw&lt;/code&gt; subpaths remain. Work through the &lt;a href="https://github.com/isaacs/node-tar#migration-from-version-7" rel="noopener noreferrer"&gt;migration table in the node-tar README&lt;/a&gt;. If a service is still on Node 18 or 20, the Node upgrade comes first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't force tar 8 onto tools with &lt;code&gt;overrides&lt;/code&gt; or &lt;code&gt;resolutions&lt;/code&gt;.&lt;/strong&gt; npm, pacote and node-gyp are written against the tar 7 API, so forcing a new major under them is likely to break installs. Wait for their own releases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harden extraction while you port.&lt;/strong&gt; The README's security section recommends a &lt;code&gt;filter&lt;/code&gt; that refuses &lt;code&gt;SymbolicLink&lt;/code&gt; and &lt;code&gt;Link&lt;/code&gt; entries for archives you don't trust, and limits on entry size. Also extract into a new empty folder that no other process writes to. Run the job in a container or worker that holds no production secrets, so a file written in the wrong place can't reach anything valuable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't rely on scanning first.&lt;/strong&gt; Several of these bugs are differences between how node-tar and other tools read the same archive. If you inspect an upload with one tool and extract it with node-tar, the two may not see the same files. This is our reading of the advisories, not a statement in them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reduce risk from installs until npm ships a fix.&lt;/strong&gt; Install with &lt;code&gt;npm ci&lt;/code&gt; from a committed lockfile, so every tarball has to match its recorded integrity hash. Don't run installs for fork pull requests in CI jobs that hold secrets.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Verify You're Safe
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npm ls tar --all&lt;/code&gt; shows 8.0.5 or later for every copy your own code imports. Copies that come only through npm, pacote or node-gyp are tracked as an open item, not ignored.&lt;/li&gt;
&lt;li&gt;A regression test feeds your upload path the two-link archive from GHSA-gvrf-jx37-rjv5 and checks that nothing appears outside the extraction folder. Your filter should reject the link entries outright.&lt;/li&gt;
&lt;li&gt;Your Dependabot or Renovate alerts for &lt;code&gt;tar&lt;/code&gt; are closed by real upgrades, not dismissed. Expect alerts in almost every Node.js lockfile, including ones where tar is only a tool dependency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An npm CLI release that moves to tar 8, and the Node.js releases that bundle it. Until then, every Node.js install ships an npm that uses tar 7.&lt;/li&gt;
&lt;li&gt;node-gyp and pacote releases on tar 8.&lt;/li&gt;
&lt;li&gt;Any statement from npm or GitHub on whether registry installs are exploitable, and any report of exploitation or a KEV listing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/npm-supply-chain-attacks-april-2026-saas-checklist" rel="noopener noreferrer"&gt;The April 2026 npm Supply Chain Wave: A SaaS Founder's 48-Hour Checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/nodejs-26-saas-production-upgrade" rel="noopener noreferrer"&gt;Node.js 26 Is Now LTS: A SaaS Production Upgrade Plan&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/github-dependabot-cooldown-saas-policy" rel="noopener noreferrer"&gt;Dependabot's New 3-Day Cooldown: A Safer Update Policy for SaaS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If no code you own extracts untrusted archives, steps 1 and 7 are most of the work, plus watching for the npm release. If you do have an upload or import path, the tar 8 port often brings two other jobs with it: a Node.js upgrade on older services, and sandboxing a worker that currently runs next to production secrets. The &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; service covers that kind of work. Bring the &lt;code&gt;npm ls tar --all&lt;/code&gt; output and a list of the features that accept archives.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/node-tar-8-security-advisories-december-2026" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>node</category>
      <category>npm</category>
      <category>javascript</category>
    </item>
    <item>
      <title>The OTP the AI Wrote: Why Every Login Code Needs an Attempt Limit</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Sat, 28 Nov 2026 05:57:19 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/the-otp-the-ai-wrote-why-every-login-code-needs-an-attempt-limit-1ood</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/the-otp-the-ai-wrote-why-every-login-code-needs-an-attempt-limit-1ood</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqnfl8vw3pw9268k4o2qm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqnfl8vw3pw9268k4o2qm.png" alt="Diagram of a bot sending many OTP guesses to a login endpoint, with an attempt counter stopping it after five wrong tries" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is a scenario that shows up in a lot of codebases written quickly. You ask an AI coding assistant for a login OTP check: 4 digits, expires in 5 minutes. It writes clean code. Expired codes are rejected. Wrong codes are rejected. The right code logs you in and deletes the OTP. Every test you would think to write passes.&lt;/p&gt;

&lt;p&gt;Then a bot starts guessing. How long until it is in?&lt;/p&gt;

&lt;p&gt;In the version I built and ran for the &lt;a href="https://github.com/somnathraz/interview-traps/tree/main/06-otp-bruteforce" rel="noopener noreferrer"&gt;interview-traps repo&lt;/a&gt;, the answer was 0.7 seconds. That is the sixth trap in the repo, and the recorded run is on the &lt;a href="https://somanathkhadanga.com/labs/traps/otp-bruteforce" rel="noopener noreferrer"&gt;OTP trap page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post covers why that code passes review, the one-statement fix, and the rule worth carrying into every auth endpoint you ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  The code an assistant usually writes
&lt;/h2&gt;

&lt;p&gt;The prompt in the repo is two lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Write an Express + Postgres endpoint to verify a 4-digit login OTP.
OTPs expire after 5 minutes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer looks like this. It is the core of &lt;code&gt;bug.ts&lt;/code&gt; in the repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT code, expires_at FROM otps WHERE phone = $1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;otp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;otp&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;otp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;expires_at&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"400 OTP expired"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;otp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"401 Wrong OTP"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DELETE FROM otps WHERE phone = $1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"200 Logged in"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It does everything the prompt asked. A reviewer would approve it. The repo's first proof test checks exactly this: a wrong code gets &lt;code&gt;401&lt;/code&gt;, the right code gets &lt;code&gt;200&lt;/code&gt;. Both pass.&lt;/p&gt;

&lt;p&gt;What the prompt did not say is that someone other than the phone's owner will call this endpoint. Nothing in the code counts guesses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why expiry is not a defence
&lt;/h2&gt;

&lt;p&gt;A 4-digit OTP has 10,000 possible values. Expiry feels like a limit, but it limits time, not tries. Five minutes is a very long time for a script.&lt;/p&gt;

&lt;p&gt;The repo's episode has a bot walk &lt;code&gt;0000&lt;/code&gt; to &lt;code&gt;9999&lt;/code&gt; in order against one phone's OTP, keeping 50 guesses in flight at once, against a real Postgres on the same machine. The run output from the README:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;❌ The bot guessed OTP 7316 after 7,350 tries in 0.7s. The code was valid for 5 minutes. Account taken over.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That time is a local number, and the README says so: the bot and the database share a laptop. Over a real network it is slower, but not slow enough. At 100 guesses a second, all 10,000 codes take under 2 minutes, still well inside the 5-minute window. The proof test asserts the bot finds the code in less than 300 seconds.&lt;/p&gt;

&lt;p&gt;This is a well-documented weakness. MITRE lists it as &lt;a href="https://cwe.mitre.org/data/definitions/307.html" rel="noopener noreferrer"&gt;CWE-307, Improper Restriction of Excessive Authentication Attempts&lt;/a&gt;. NIST's digital identity guidelines go further: &lt;a href="https://pages.nist.gov/800-63-4/sp800-63b.html#throttle" rel="noopener noreferrer"&gt;SP 800-63B section 3.2.2&lt;/a&gt; says a verifier shall limit consecutive failed attempts on one authenticator to no more than 100, and that 100 is an upper bound, not a target. A short code is exactly the case the rule exists for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the AI did not add a limit
&lt;/h2&gt;

&lt;p&gt;The assistant is not being careless. It answered the question in the prompt, and the prompt described the happy path: a real user typing their own code. Attackers, retries and scripts are only handled when someone asks about them.&lt;/p&gt;

&lt;p&gt;Developers often write the same shape by hand, for the same reason. The way we describe an OTP check in words, "look up the code, check it has not expired, compare it", is a description of one honest user. The endpoint is not only called by honest users.&lt;/p&gt;

&lt;p&gt;A habit that helps: whenever you prompt for an auth endpoint, add one sentence. "Assume a script will call this endpoint 10,000 times; limit guesses per code and per caller." Then read the answer and check it actually counts something.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: spend an attempt before comparing
&lt;/h2&gt;

&lt;p&gt;The fix in &lt;code&gt;fix.ts&lt;/code&gt; adds an &lt;code&gt;attempts&lt;/code&gt; column and spends one attempt in the same statement that reads the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`UPDATE otps SET attempts = attempts + 1
   WHERE phone = $1 AND attempts &amp;lt; 5 AND expires_at &amp;gt; now()
   RETURNING code`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"429 Too many attempts, request a new OTP"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"401 Wrong OTP"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every guess costs one attempt before the comparison happens. After 5 wrong guesses the row no longer matches the &lt;code&gt;WHERE&lt;/code&gt; clause, zero rows come back, and the OTP is dead. The real user asks for a new one. The bot is back to a 5-in-10,000 chance per code.&lt;/p&gt;

&lt;p&gt;Run against the same bot, the README output is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✅ 5 wrong guesses allowed, then every guess got 429. The OTP died before the bot got close.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The proof test asserts the code is never cracked, exactly 5 wrong guesses were allowed, and the &lt;code&gt;attempts&lt;/code&gt; column ends at 5.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part most fixes get wrong: the counter must be atomic
&lt;/h2&gt;

&lt;p&gt;A common first attempt at this fix reads &lt;code&gt;attempts&lt;/code&gt;, checks it in code, then runs a second &lt;code&gt;UPDATE attempts = attempts + 1&lt;/code&gt;. That looks right and fails the same way the &lt;a href="https://somanathkhadanga.com/blog/ai-coupon-api-usage-limit-race" rel="noopener noreferrer"&gt;coupon the AI wrote&lt;/a&gt; fails. With 50 guesses in flight, all 50 read &lt;code&gt;attempts = 0&lt;/code&gt; before any of them writes, so all 50 pass the check. The limit of 5 lets 50 through.&lt;/p&gt;

&lt;p&gt;Putting the condition inside the &lt;code&gt;UPDATE&lt;/code&gt; closes that gap. Postgres locks the row for each update, and under the default Read Committed level a waiting update re-checks its &lt;code&gt;WHERE&lt;/code&gt; clause against the new row before it applies. So the guesses take turns, and the sixth one sees &lt;code&gt;attempts = 5&lt;/code&gt; and gets nothing back. That is why the repo's proof test runs with 50 guesses in flight rather than one at a time: a sequential test would pass for both the atomic and the racy counter.&lt;/p&gt;

&lt;p&gt;It is the same rule as the &lt;a href="https://somanathkhadanga.com/blog/double-booked-seat-booking-race-condition" rel="noopener noreferrer"&gt;double-booked seat&lt;/a&gt;: never check and act in two separate statements. A seat is a limit of one, a coupon a limit of ten, an OTP a limit of five guesses.&lt;/p&gt;

&lt;h2&gt;
  
  
  What else belongs around it
&lt;/h2&gt;

&lt;p&gt;The attempt counter is the minimum. The repo's README lists what interviewers accept on top, and each one closes a different hole:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Attempt counter in the same atomic &lt;code&gt;UPDATE&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Always. The minimum for any OTP.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate-limit verify per phone and per IP&lt;/td&gt;
&lt;td&gt;Always, on top. Stops one IP spraying many phones.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate-limit OTP sends too&lt;/td&gt;
&lt;td&gt;Always. Otherwise the bot requests a fresh OTP every 5 tries, and you pay for every SMS.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6 digits instead of 4&lt;/td&gt;
&lt;td&gt;Helps (1,000,000 values), does not replace the limit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Store a hash of the code, compare in constant time&lt;/td&gt;
&lt;td&gt;Good hygiene. A leaked table should not hand out live codes.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The send limit deserves a second look. If requesting a new code resets the counter, a bot can get 5 guesses, ask for a new OTP, get 5 more, and keep going. NIST's guidance for out-of-band codes says generating a new secret shall not reset the failed attempt count, which is the same idea. Count failures per phone, not only per code.&lt;/p&gt;

&lt;p&gt;Sends are also where the limiter's own failure mode matters. If your rate limiter depends on Redis and Redis goes down, an OTP endpoint should fail closed, not open, as the &lt;a href="https://somanathkhadanga.com/labs/traps/rate-limiter-redis-down" rel="noopener noreferrer"&gt;Redis-down trap&lt;/a&gt; in the Rate Limiter world shows. An open OTP endpoint during an outage is unlimited guesses and an unlimited SMS bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;The repo's interview rule for this trap:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Every secret a human can type needs an attempt limit, counted atomically. Five wrong guesses kill the code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;OTPs are the obvious case. The same rule covers password reset codes, email verification links with short tokens, PINs, invite codes and two-factor backup codes. If a person can type it, a script can type it faster.&lt;/p&gt;

&lt;p&gt;My recommendation for any AI-written auth endpoint: ask one question in review. What happens if a script calls this 10,000 times? If the honest answer is "it keeps comparing", fix it before launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  When this is enough, and when to get help
&lt;/h2&gt;

&lt;p&gt;For one app on one Postgres database, you can check this in an afternoon. List every endpoint that verifies something a user types: OTP, reset code, PIN, invite code. For each, confirm three things: a per-code attempt limit spent in the same statement as the read, a rate limit on sends, and a rate limit on verifies per caller. Then write one concurrent test that fires 50 guesses at once and checks exactly 5 got through.&lt;/p&gt;

&lt;p&gt;It gets harder when auth is split across a provider, a cache and your own API, or when a lot of it was generated quickly. That is where a structured review is worth it. The checklist in &lt;a href="https://somanathkhadanga.com/blog/what-to-audit-in-a-vibe-coded-mvp-before-real-users-see-it" rel="noopener noreferrer"&gt;what to audit in a vibe-coded MVP&lt;/a&gt; covers auth alongside the rest, and if you are considering moving away from typed codes altogether, &lt;a href="https://somanathkhadanga.com/blog/passkeys-saas-rollout-recovery" rel="noopener noreferrer"&gt;a passkeys rollout plan that preserves recovery&lt;/a&gt; is the next read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is a 5-minute expiry enough to protect a 4-digit OTP?
&lt;/h3&gt;

&lt;p&gt;No. Expiry limits how long a code lives, not how many guesses it takes. A 4-digit code has 10,000 values, and a script at 100 guesses a second walks all of them in under 2 minutes. You need an attempt limit that kills the code after a few wrong guesses.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does switching to a 6-digit OTP fix brute force?
&lt;/h3&gt;

&lt;p&gt;It helps, because the guess space grows to 1,000,000 values, but it does not replace the attempt limit. Without a limit, a bigger space only means the script runs longer. Keep both: 6 digits and an atomic attempt counter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/ai-coupon-api-usage-limit-race" rel="noopener noreferrer"&gt;The Coupon the AI Wrote: Why Usage Limits Break Under Load&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/double-booked-seat-booking-race-condition" rel="noopener noreferrer"&gt;The Double-Booked Seat: Fixing a Booking Race Condition in Postgres&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/ai-saas-fraud-abuse-controls" rel="noopener noreferrer"&gt;AI SaaS Fraud Controls: Protect Trials, Payments, and Model Spend&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;Run it yourself: clone the &lt;a href="https://github.com/somnathraz/interview-traps" rel="noopener noreferrer"&gt;interview-traps repo&lt;/a&gt;, start Postgres with &lt;code&gt;npm run db:up&lt;/code&gt;, then run &lt;code&gt;npm run 06:bug&lt;/code&gt; and &lt;code&gt;npm run 06:fix&lt;/code&gt;. The recorded replay is on the &lt;a href="https://somanathkhadanga.com/labs/traps/otp-bruteforce" rel="noopener noreferrer"&gt;OTP trap page&lt;/a&gt;, next to the other traps in &lt;a href="https://somanathkhadanga.com/labs/traps" rel="noopener noreferrer"&gt;Labs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If your SaaS has login codes, reset links or invite codes and much of that code was written fast or by an assistant, that is one of the first things my &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; checks. Bring a list of every endpoint that verifies something a user types, and we can find the ones a script would get through.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/otp-brute-force-attempt-limit" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>postgres</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
    <item>
      <title>Microsoft's agent-framework Package Was Hijacked on PyPI: What AI SaaS Teams Should Check</title>
      <dc:creator>Somnath Khadanga</dc:creator>
      <pubDate>Fri, 20 Nov 2026 10:22:24 +0000</pubDate>
      <link>https://dev.to/somnath_khadanga_2e5c2364/microsofts-agent-framework-package-was-hijacked-on-pypi-what-ai-saas-teams-should-check-1b4e</link>
      <guid>https://dev.to/somnath_khadanga_2e5c2364/microsofts-agent-framework-package-was-hijacked-on-pypi-what-ai-saas-teams-should-check-1b4e</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbm32y1xla3fs73dli2ju.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbm32y1xla3fs73dli2ju.png" alt="A Python package box on a conveyor belt with a small hook attached, beside a cloud key, a CI pipeline and a checklist on a clipboard" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the evening of November 17, 2026 (UTC), two releases of Microsoft's official &lt;code&gt;agent-framework&lt;/code&gt; package appeared on PyPI that did not come from the project's repository. Versions 1.26.1 and 1.26.2 carried a credential stealer that runs every time Python starts. Both are gone from PyPI, but anything that installed or cached them is still exposed.&lt;/p&gt;

&lt;p&gt;If you have a Python service that builds AI agents, or CI that installs Python dependencies without pins, this is a short check. Most teams were never on those versions. Those that were should rotate credentials today: the stealer targeted cloud identities, CI tokens and model provider keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/advisories/GHSA-764m-3ppc-5m73" rel="noopener noreferrer"&gt;GitHub advisory GHSA-764m-3ppc-5m73&lt;/a&gt; lists the facts most sources agree on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Affected package:&lt;/strong&gt; only the &lt;code&gt;agent-framework&lt;/code&gt; meta-package on PyPI. Both bad versions pin &lt;code&gt;agent-framework-core[all]==1.26.0&lt;/code&gt;, and &lt;a href="https://www.endorlabs.com/learn/agent-framework-compromised-software-supply-chain-attack" rel="noopener noreferrer"&gt;Endor Labs&lt;/a&gt; checked 22 sibling &lt;code&gt;agent-framework-*&lt;/code&gt; packages and found no new releases after November 12.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Malicious versions:&lt;/strong&gt; 1.26.1 (uploaded about 20:35 UTC) and 1.26.2 (about 21:08 UTC), both wheel-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Last clean version:&lt;/strong&gt; 1.26.0, published November 12. The advisory lists no newer patched release, and says 1.26.0 and earlier are not affected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Removal:&lt;/strong&gt; both versions were removed from PyPI on the same evening. Sources disagree slightly on when 1.26.2 came down. &lt;a href="https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi" rel="noopener noreferrer"&gt;Wiz&lt;/a&gt; says both were gone by 21:30 UTC.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note the second upload: 1.26.2 went up after 1.26.1 was pulled, so the publisher still had access then. Wiz says the attacker appears to have used a compromised client certificate for Microsoft's internal release pipeline, obtained in an unknown way. That root cause is Wiz's research. A project maintainer has reportedly confirmed the removal and an investigation, but Microsoft had published no advisory as of November 20.&lt;/p&gt;

&lt;p&gt;No npm or NuGet package was reported as compromised. The stealer &lt;em&gt;collects&lt;/em&gt; npm and NuGet credentials; it did not spread there.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the Stealer Works
&lt;/h2&gt;

&lt;p&gt;The payload is a &lt;code&gt;.pth&lt;/code&gt; file in &lt;code&gt;site-packages&lt;/code&gt;. Python runs these at startup, so the stealer fires whenever any Python process starts there, &lt;code&gt;pip&lt;/code&gt; included, without importing &lt;code&gt;agent_framework&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1.26.1&lt;/strong&gt; added &lt;code&gt;agent_framework_meta.pth&lt;/code&gt;, which loads &lt;code&gt;agent_framework_meta/_telemetry.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1.26.2&lt;/strong&gt; added &lt;code&gt;af_runtime_diag.pth&lt;/code&gt; and a top-level &lt;code&gt;af_runtime_diag.py&lt;/code&gt;, and restored the original &lt;code&gt;__init__.py&lt;/code&gt; to make the change harder to spot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Per the advisory, Wiz and Endor Labs, it collects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;environment variables whose names contain strings such as &lt;code&gt;TOKEN&lt;/code&gt;, &lt;code&gt;SECRET&lt;/code&gt;, &lt;code&gt;KEY&lt;/code&gt;, &lt;code&gt;AZURE&lt;/code&gt;, &lt;code&gt;AWS&lt;/code&gt;, &lt;code&gt;GITHUB&lt;/code&gt;, &lt;code&gt;OPENAI&lt;/code&gt;, &lt;code&gt;HF_&lt;/code&gt;, &lt;code&gt;NPM&lt;/code&gt; and &lt;code&gt;CI_&lt;/code&gt;, plus the environments of up to 300 other processes;&lt;/li&gt;
&lt;li&gt;credential files such as &lt;code&gt;~/.azure&lt;/code&gt;, &lt;code&gt;.npmrc&lt;/code&gt;, &lt;code&gt;.netrc&lt;/code&gt;, &lt;code&gt;.git-credentials&lt;/code&gt;, &lt;code&gt;.docker/config.json&lt;/code&gt;, &lt;code&gt;pip.conf&lt;/code&gt;, Hugging Face tokens, and &lt;code&gt;.env&lt;/code&gt; or JSON files under &lt;code&gt;/app&lt;/code&gt; and &lt;code&gt;/workspace&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;Azure managed-identity tokens for a dozen services, requested from the instance metadata endpoint;&lt;/li&gt;
&lt;li&gt;Azure DevOps pipeline tokens, and in 1.26.2, &lt;strong&gt;GitHub Actions OIDC tokens&lt;/strong&gt; for jobs that have &lt;code&gt;id-token: write&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything was sent in one HTTP POST to a &lt;code&gt;webhook.site&lt;/code&gt; URL. The published indicators include the user agents &lt;code&gt;af-runtime-diagnostics/1&lt;/code&gt; and &lt;code&gt;runtime-diagnostics/1&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is Affected
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You installed &lt;code&gt;agent-framework&lt;/code&gt; 1.26.1 or 1.26.2 anywhere:&lt;/strong&gt; a laptop, a CI run, a container build or a server. Treat that environment as compromised.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You run unpinned installs&lt;/strong&gt; (&lt;code&gt;pip install agent-framework&lt;/code&gt; or &lt;code&gt;agent-framework&amp;gt;=1.x&lt;/code&gt;) and any build ran between about 20:35 and 21:30 UTC on November 17. Check whether it resolved a bad version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You use an internal package proxy or mirror&lt;/strong&gt; (Artifactory, Nexus, a pip cache). It may have cached the bad wheels after PyPI removed them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You pin &lt;code&gt;agent-framework==1.26.0&lt;/code&gt; or earlier with a lockfile,&lt;/strong&gt; or you only use &lt;code&gt;agent-framework-core&lt;/code&gt; or the .NET packages: not affected by this incident.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You do not use Microsoft Agent Framework at all:&lt;/strong&gt; not affected.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Search for the versions.&lt;/strong&gt; Grep lockfiles (&lt;code&gt;uv.lock&lt;/code&gt;, &lt;code&gt;poetry.lock&lt;/code&gt;, &lt;code&gt;requirements*.txt&lt;/code&gt;) and CI logs for &lt;code&gt;agent-framework==1.26.1&lt;/code&gt;, &lt;code&gt;1.26.2&lt;/code&gt;, or &lt;code&gt;agent_framework-1.26.1&lt;/code&gt; / &lt;code&gt;1.26.2&lt;/code&gt; wheel names. Include container images built since November 17.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look for the files without running Python.&lt;/strong&gt; In each suspect environment, list &lt;code&gt;site-packages&lt;/code&gt; with &lt;code&gt;find&lt;/code&gt; or &lt;code&gt;ls&lt;/code&gt; for &lt;code&gt;agent_framework_meta.pth&lt;/code&gt;, &lt;code&gt;af_runtime_diag.pth&lt;/code&gt; and &lt;code&gt;af_runtime_diag.py&lt;/code&gt;. Endor Labs warns that running &lt;code&gt;python&lt;/code&gt; or &lt;code&gt;pip&lt;/code&gt; in an affected environment re-runs the stealer, so do not "just pip uninstall" first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rebuild, do not clean.&lt;/strong&gt; Throw away affected virtualenvs and images and rebuild from a clean base with &lt;code&gt;agent-framework==1.26.0&lt;/code&gt; pinned, ideally with hashes (&lt;code&gt;pip install --require-hashes&lt;/code&gt;, or &lt;code&gt;uv&lt;/code&gt;/Poetry lockfiles).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block the bad versions upstream.&lt;/strong&gt; Add 1.26.1 and 1.26.2 to your package proxy's deny list so a cache cannot hand them out again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rotate what the environment could read.&lt;/strong&gt; Model provider keys (OpenAI, Azure OpenAI, Anthropic and others), cloud credentials, GitHub and npm tokens, PyPI tokens, Docker registry logins, Hugging Face tokens and database URLs in &lt;code&gt;.env&lt;/code&gt; files. On a developer laptop, that includes the Azure CLI session and any saved git credentials.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remember that rotation does not revoke issued tokens.&lt;/strong&gt; Managed-identity and OIDC tokens that were already stolen stay valid until they expire. Review what the identity could do while they lasted (Wiz notes up to 24 hours for the Azure tokens).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Check Whether Anything Was Used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Network logs:&lt;/strong&gt; look for outbound requests to &lt;code&gt;webhook.site&lt;/code&gt; from build agents or servers, and the user agents above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud sign-ins:&lt;/strong&gt; in Entra ID, review sign-ins and token use for managed identities and service principals after November 17, and check for new federated credentials or role assignments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; for workflows that installed 1.26.2 with &lt;code&gt;id-token: write&lt;/code&gt;, check the cloud side of that trust (the AWS, Azure or GCP role it federates into) for actions you did not run. Review new deploy keys, personal access tokens and Actions secrets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model providers:&lt;/strong&gt; check usage dashboards for spend, models or API keys you do not recognise.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wiz reported that few of the requests it could observe at the exfiltration endpoint held real victim data. That is one team's view, not a reason to skip rotation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Says About Your Pipeline
&lt;/h2&gt;

&lt;p&gt;This came through the official package name and ran at install time. Three habits contain it: pin Python dependencies with hashes and let new releases age a few days; grant &lt;code&gt;id-token: write&lt;/code&gt; only to deploy jobs, not install-and-test jobs (the &lt;a href="https://somanathkhadanga.com/blog/github-actions-execution-policies-saas" rel="noopener noreferrer"&gt;GitHub Actions execution policies guide&lt;/a&gt; covers scoping); and keep production secrets out of build environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to Watch Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A Microsoft statement.&lt;/strong&gt; Root cause and the state of the publishing credential stay unconfirmed until Microsoft says so. No other Microsoft package has been reported for this incident.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The next &lt;code&gt;agent-framework&lt;/code&gt; release.&lt;/strong&gt; Before upgrading past 1.26.0, check it matches a tagged release in the repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copycats.&lt;/strong&gt; &lt;a href="https://www.helpnetsecurity.com/2026/11/19/microsoft-agent-framework-package-pypi-compromised/" rel="noopener noreferrer"&gt;Help Net Security&lt;/a&gt; places this among other 2026 attacks on AI tooling packages, which hold model and cloud credentials.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/shai-hulud-2-npm-worm-saas-defense" rel="noopener noreferrer"&gt;Shai-Hulud 2.0: The npm Worm Spreading Through SAP and Intercom Packages This Week&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/ai-agent-identity-saas-access-blueprint" rel="noopener noreferrer"&gt;Your AI Agent Needs Its Own Identity: A SaaS Access Blueprint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://somanathkhadanga.com/blog/tanstack-npm-compromise-2026" rel="noopener noreferrer"&gt;TanStack Was Compromised Yesterday. Here's What SaaS Teams Need to Do Right Now.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Next Step
&lt;/h2&gt;

&lt;p&gt;If steps 1 and 2 come back clean, only the pipeline hygiene above remains. If they find a bad version, or you cannot tell which secrets your build agents read, that is a production readiness question. The &lt;a href="https://somanathkhadanga.com/services/production-readiness-upgrade" rel="noopener noreferrer"&gt;production readiness upgrade&lt;/a&gt; covers dependency pinning, CI identity scoping and secret placement. Bring your lockfiles, your CI workflow files and a list of where your provider keys live.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://somanathkhadanga.com/blog/microsoft-agent-framework-pypi-compromise" rel="noopener noreferrer"&gt;somanathkhadanga.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>python</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
