Blog

  • TYPO3 CVE-2026-125160: Patch the Exploited Form Upload Flaw (TYPO3-CORE-SA-2026-029)

    TYPO3 CVE-2026-125160: Patch the Exploited Form Upload Flaw (TYPO3-CORE-SA-2026-029)

    TYPO3 CVE-2026-125160 graphic: Form Framework upload flaw fixed in TYPO3 14.3.12, 13.4.40 and ELTS releases

    Introduction

    TYPO3 CVE-2026-125160 is an information disclosure flaw in the TYPO3 Form Framework (ext:form), and TYPO3 says it is known to be actively exploited. TYPO3 fixed it on November 17, 2026, in advisory TYPO3-CORE-SA-2026-029. On November 30, 2026, CISA added it to its Known Exploited Vulnerabilities (KEV) catalog.

    The bug leaks a folder path that lets attackers find the public URL of files they upload through a form. On some setups, that can lead to cross-site scripting (XSS). This guide explains who is affected and how to fix it, without exploit details.

    Key Facts: TYPO3 CVE-2026-125160 at a Glance

    • What: information disclosure in the Form Framework upload handling, advisory TYPO3-CORE-SA-2026-029, published November 17, 2026.
    • CVE: CVE-2026-125160, CWE-209 (error message containing sensitive information). Composer package: typo3/cms-form.
    • Severity: Medium per TYPO3. CVSS 4.0 score 6.3 from TYPO3 as the CVE Numbering Authority (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:A). NVD lists the record as “Undergoing Analysis”.
    • Affected: 10.0.0-10.4.62, 11.0.0-11.5.56, 12.0.0-12.4.51, 13.0.0-13.4.39 and 14.0.0-14.3.11.
    • Fixed in: 14.3.12 LTS, 13.4.40 LTS, 12.4.52 ELTS, 11.5.57 ELTS and 10.4.63 ELTS.
    • Exploitation: TYPO3 says it is “known to be actively exploited”. CISA added it to KEV on November 30, 2026, with a due date of December 14, 2026. Known ransomware use: “Unknown”.
    • Action: update TYPO3 and serve the form upload folder with a restrictive Content-Security-Policy.

    What Is TYPO3 CVE-2026-125160?

    TYPO3 CVE-2026-125160 is a leak of the hidden folder where the Form Framework stores uploaded files.

    Files uploaded through FileUpload or ImageUpload form elements go into an unguessable sub-folder that stays the same for the whole form session. When storing a file failed, for example because the file name was too long for the file system, TYPO3 showed the raw error message to the visitor.

    That message revealed the storage path, including the unguessable folder name and the server’s temporary upload directory. Attackers could then work out the public URL of their uploaded files.

    When does it lead to cross-site scripting?

    XSS needs two more conditions, according to TYPO3:

    1. The form accepts files that browsers can execute, such as HTML documents.
    2. The web server does not apply TYPO3’s recommended Content-Security-Policy to the form upload target folder.

    The same release fixed a related flaw, TYPO3-CORE-SA-2026-032 (CVE-2026-125163): upload elements with an empty allowedMimeTypes list accepted almost any file type, including HTML or SVG.

    Which TYPO3 Versions Are Affected?

    TYPO3 10, 11, 12, 13 and 14 are all affected below the November 17, 2026 releases.

    TYPO3 branchAffected versionsFixed versionSupport (get.typo3.org)
    14.314.0.0 – 14.3.1114.3.12 LTSLTS, maintained until June 30, 2029
    13.413.0.0 – 13.4.3913.4.40 LTSLTS, maintained until December 31, 2027
    12.412.0.0 – 12.4.5112.4.52 ELTSPaid ELTS only (free support ended April 30, 2026)
    11.511.0.0 – 11.5.5611.5.57 ELTSPaid ELTS only
    10.410.0.0 – 10.4.6210.4.63 ELTSPaid ELTS only

    TYPO3 published all five releases on November 17, 2026, between about 11:47 and 12:06 Kyiv time.

    TYPO3 CVE-2026-125160 timeline: fixes on November 17, CISA KEV listing on November 30, due date December 14, 2026
    TYPO3 CVE-2026-125160 timeline from the TYPO3 advisory and the CISA KEV catalog, checked December 1, 2026.

    What Is the Security Impact?

    The direct impact is a small information leak, but it can be one step in an XSS attack.

    The CVSS vector says no login (PR:N) or user interaction (UI:N) is needed, but AT:P means certain conditions must be present. CISA’s KEV entry describes an unauthenticated remote attacker who can disclose upload storage paths and find the public URL of attacker-uploaded files, “potentially enabling cross-site scripting under affected configurations.”

    Neither TYPO3 nor CISA has said who is exploiting the flaw or how widely.

    How Do I Check Whether My Site Is Affected?

    Check your version, your forms and the upload folder headers.

    How do I check my TYPO3 version?

    In a Composer-based project, run:

    composer show typo3/cms-form | grep versions
    composer outdated -m "typo3/*"

    Administrators can also see the TYPO3 version in the System Information menu of the backend toolbar. On branches 10 to 14, anything below 14.3.12, 13.4.40, 12.4.52, 11.5.57 or 10.4.63 is affected.

    Do my forms accept file uploads?

    In the Form module, find File upload and Image upload elements and note their allowed MIME types and upload folder (saveToFileMount). The default upload folder is 1:/user_upload/, which usually sits in fileadmin/.

    Is the upload folder protected by a CSP?

    Request an existing file in the upload folder (use a real URL from your site) and look for the header:

    curl -sI https://example.com/fileadmin/user_upload/example.pdf | grep -i content-security-policy

    No Content-Security-Policy header means the extra protection is missing.

    How Do I Fix TYPO3 CVE-2026-125160?

    Update TYPO3 core, clear caches, then add the CSP protection.

    1. Back up the database, files and composer.lock.
    2. Update with Composer. TYPO3’s patch update guide uses composer update --with-all-dependencies "typo3/*". Constraints like ^14.3 or ^13.4 already allow 14.3.12 and 13.4.40.
    3. Clear all caches in Admin Tools > Maintenance. The release notes say no database updates are necessary.
    4. Check the version again with composer show typo3/cms-form.
    5. Check your upload forms. After the SA-2026-032 fix, an empty allowedMimeTypes list refuses all uploads. Set at least one allowed MIME type for every upload element.
    6. Repeat for every copy, including staging and container images.

    Classic (non-Composer) installs can use the source packages on get.typo3.org.

    What if I run TYPO3 10, 11 or 12?

    The 10.4, 11.5 and 12.4 fixes are ELTS releases. Extended Long Term Support is a paid TYPO3 GmbH service for these versions. Packagist’s public typo3/cms-form versions stop at 12.4.45, 11.5.41 and 10.4.37 (checked December 1, 2026). Without ELTS, plan an upgrade to 13.4 or 14.3 LTS.

    Additional Security Recommendations

    A restrictive CSP on the upload folder is the main defense TYPO3 recommends, even after patching.

    • Apache: the fileadmin/.htaccess shipped with TYPO3 applies this policy for the default storage. Check that it is present and mod_headers is enabled; other storages need the same rule.
    • Nginx: Nginx ignores .htaccess, so you must configure it manually. TYPO3’s security guide gives this example:
    map $request_uri $csp_header {
        ~^/fileadmin/ "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none';";
    }
    
    server {
        # Add strict CSP header depending on mapping (fileadmin only)
        add_header Content-Security-Policy $csp_header;
    }

    TYPO3 uses a map because add_header in a location block overrides inherited ones. Adjust the path for other upload folders and run nginx -t before reloading. Our Content Security Policy guide explains each directive.

    • Allow only the file types you need. Avoid HTML and SVG in public upload forms.
    • Review the upload folder for unexpected HTML or SVG files; TYPO3 has published no indicators of compromise.
    • Set other headers too with our HTTP security headers guide. A web application firewall adds a layer but does not replace patching.

    FAQ

    Is TYPO3 CVE-2026-125160 being exploited?

    Yes. TYPO3’s advisory says it is “known to be actively exploited”, and CISA added it to the KEV catalog on November 30, 2026. CISA lists known ransomware use as “Unknown”.

    What is the CISA due date for TYPO3 CVE-2026-125160?

    December 14, 2026. It binds agencies covered by CISA’s directives; for everyone else it is a strong priority signal.

    My forms have no upload fields. Am I safe?

    The advisory describes the leak only for FileUpload and ImageUpload elements. Update anyway: the same releases fix other advisories too, including a critical installer flaw (SA-2026-027).

    Does the fix change how my forms behave?

    Yes. Upload elements without any allowed MIME type now refuse uploads. TYPO3 offers a temporary feature toggle for the old behavior but does not recommend it.

    Conclusion

    TYPO3 CVE-2026-125160 is rated Medium, but it is exploited and in CISA KEV. Update to 14.3.12, 13.4.40 or your ELTS release, set allowed MIME types on upload fields, and serve the upload folder with TYPO3’s strict CSP. Our CVE and KEV explainer helps with prioritizing.

    References

    Related Articles

    Last Verified: December 1, 2026. Prepared by SafeWebAcademy from the official TYPO3 security advisories, release notes and documentation, the CVE.org and NVD records, and the CISA KEV catalog linked above. This is not an official TYPO3 publication. Security details can change, so check the linked advisories for updates.

  • OWASP Top 10 for LLM Applications (2026): Practical Security Guide for AI Developers

    OWASP Top 10 for LLM Applications (2026): Practical Security Guide for AI Developers

    OWASP Top 10 for LLM Applications 2026 graphic: Prompt Injection, Sensitive Information Disclosure, Excessive Agency, and Hidden Context Exposure beside a purple LLM shield

    Introduction

    Building AI features into a web app—whether a customer support chatbot, a retrieval-augmented generation (RAG) search bar, or an autonomous coding or workflow agent—changes your application’s threat model. Unlike classic SQL queries where code and data stay separated by parameterized bindings, a large language model reads system instructions, user messages, retrieved documents, and tool outputs as a single stream of tokens. As of November 25, 2026, the official baseline for engineering teams is the OWASP Top 10 for LLM Applications 2026 published by the OWASP GenAI Security Project at genai.owasp.org.

    This guide walks developers through all ten entries of the 2026 OWASP Top 10 for LLM Applications, explains what changed from the 2025 edition, connects them to the companion OWASP Top 10 for Agentic Applications (2026) and Agent Control Standard (ACS), and turns each risk into concrete engineering guardrails you can enforce outside the model.

    Key Facts: OWASP Top 10 for LLM Applications 2026

    • Current official edition: OWASP GenAI LLM Top 10 2026 (released August–September 2026), replacing the 2025 edition as the latest release.
    • Evidence-backed ranking: For the first time, OWASP combined practitioner votes (75% weight) with empirical analysis of 7,714 real AI security and harm records—6,639 with enough detail to classify (25% weight).
    • Biggest shifts in 2026: LLM03:2026 Excessive Agency jumped from #6 to #3 as agentic tool use entered production; LLM06:2026 Unbounded Consumption rose four spots; LLM07:2026 Misinformation climbed because real incident records showed frequent harm; and 2025’s System Prompt Leakage evolved into LLM08:2026 Hidden Context Exposure.
    • Core design rule: OWASP’s project leads state it plainly—stop trying to build a model that cannot be fooled, and build the surrounding system so nothing critical breaks when it is.
    • Companion agentic standards: Pair the LLM Top 10 with the OWASP Top 10 for Agentic Applications (ASI01–ASI10) and the Agent Control Standard (ACS) when models invoke MCP servers, APIs, or sub-agents.

    What Changed in the 2026 OWASP Top 10 for LLM Applications?

    In the 2025 edition, rankings came purely from expert consensus. In 2026, the OWASP GenAI Security Project tested that consensus against thousands of real-world disclosures and AI incident reports. Two findings stood out:

    1. Agentic permissions are where real damage lands. When an LLM only writes chat text, a bad answer is embarrassing. When it holds OAuth tokens, SQL tools, email connectors, or shell access, a fooled model triggers unauthorized actions—pushing Excessive Agency to #3.
    2. Hidden operational context is broader than a single system prompt. Modern apps pack tool schemas, policy rules, tenant metadata, and workflow logic into non-user-visible context. LLM08:2026 Hidden Context Exposure reflects that wider surface.

    All 10 Risks in the OWASP Top 10 for LLM Applications (2026)

    RankID & Risk NameCore Developer Failure ModePrimary Defense Pattern
    1LLM01:2026 Prompt InjectionDirect, retrieved, or tool inputs hijack model behavior across one token streamAssume inputs are untrusted; isolate privileges and validate actions outside the LLM
    2LLM02:2026 Sensitive Information DisclosureModel leaks PII, secrets, private docs, or reasoning traces in outputScrub training/RAG data, enforce per-user ACLs, redact outputs
    3LLM03:2026 Excessive AgencyModel has overly broad tools, write permissions, or autonomous executionLeast agency, narrow tool scopes, deterministic auth, human approval
    4LLM04:2026 Supply ChainCompromised weights, LoRAs, dependencies, MCP servers, or datasetsVerify signatures/provenance, pin packages, maintain an AI BOM
    5LLM05:2026 Data and Model PoisoningAttacker corrupts pre-training, fine-tuning, or RAG/memory storesVet data provenance, restrict write paths to RAG/memory, monitor drift
    6LLM06:2026 Unbounded ConsumptionAttackers trigger runaway token, GPU, or API billing (Denial of Wallet)Strict per-user rate limits, token/step budgets, timeout caps
    7LLM07:2026 MisinformationHallucinated or confidently wrong outputs drive bad code or decisionsGround with verified retrieval, show citations, gate high-stakes actions
    8LLM08:2026 Hidden Context ExposureExtraction of non-user-facing system instructions, tool schemas, or rulesKeep secrets and auth logic completely out of prompts
    9LLM09:2026 Vector and Embedding WeaknessesUnfiltered RAG retrieval leaks cross-tenant chunks or accepts poisoned vectorsEnforce tenant ACLs at vector query time; validate ingested documents
    10LLM10:2026 Improper Output HandlingModel output passed unescaped into HTML, SQL, shells, or APIsTreat LLM text like untrusted user input; encode, parameterize, validate schemas

    Deep Dive: The Top Risks Developers Hit First

    LLM01:2026 Prompt Injection and LLM08:2026 Hidden Context Exposure

    LLMs make no architectural separation between developer instructions and untrusted data. Whether an attacker types an override directly into chat (direct injection) or hides white-text commands inside an HTML page, PDF, email, or MCP tool response that your assistant reads (indirect injection), both enter the same context window. Persistent memory and RAG stores worsen this because a single poisoned note can taint future sessions.

    Teams often try to fight prompt injection by writing stricter rules in the system prompt (“Never reveal internal policies or API keys”). LLM08:2026 Hidden Context Exposure explains why that fails: attackers routinely extract or infer system instructions, refusal triggers, and tool schemas. Never store API keys, database credentials, or authorization rules in a system prompt. Enforce access control in deterministic backend code before the model ever runs or sees data.

    LLM02:2026 Sensitive Information Disclosure and LLM09:2026 Vector and Embedding Weaknesses

    In RAG applications, a vector database does not automatically know which user is asking a question. If your pipeline embeds documents from HR, finance, and public help pages into one index and runs a bare similarity search on the user’s prompt, LLM09 and LLM02 turn into an instant cross-tenant data leak. Always pass the authenticated user’s permissions as mandatory metadata filters into the vector store query before retrieved chunks enter the model’s context window, and apply data-loss prevention (DLP) scanning on outputs.

    LLM application trust boundaries diagram showing untrusted inputs, shared context window, output guardrails, and least-agency tool gates
    Because instructions and data share one token stream inside the context window, security controls must live around input filtering, output validation, and deterministic tool gates.

    LLM03:2026 Excessive Agency and the OWASP Agentic Top 10

    Whenever you connect an LLM to functions, webhooks, or third-party Model Context Protocol (MCP) servers, LLM03:2026 Excessive Agency becomes your highest-impact operational risk. A model tricked by an indirect prompt injection inside an incoming ticket or webpage can abuse any tool you handed it.

    To align with the OWASP Top 10 for Agentic Applications (2026) (ASI01 Agent Goal Hijack through ASI10 Rogue Agents) and OWASP’s Agent Control Standard (ACS):

    • Practice least agency: Do not give an app autonomous multi-step tool execution if a deterministic workflow or read-only lookup works.
    • Scope tokens per user, not per service: Use the end user’s scoped OAuth permissions rather than a global admin service account.
    • Require human-in-the-loop confirmation for irreversible actions—sending external messages, deleting records, changing permissions, or spending money.
    • Enforce runtime policy hooks outside the model so a compromised prompt cannot invoke disallowed parameters or unapproved hosts.

    LLM04:2026 Supply Chain and LLM10:2026 Improper Output Handling

    AI applications pull from huge dependency trees: open-weight model checkpoints, fine-tuning adapters, Python/npm inference wrappers, prompt templates, and external MCP servers. OWASP recommends tracking an AI Bill of Materials (AI BOM), verifying model artifact hashes, and auditing third-party MCP connectors before giving them data access. This echoes the software supply-chain risks we cover in AI malware risks from LLM-generated code.

    Equally classic—and often overlooked—is LLM10:2026 Improper Output Handling. If your backend takes LLM-generated Markdown, HTML, SQL, or shell commands and renders or executes them without sanitization, a prompt injection immediately turns into stored XSS, SQL injection, or remote code execution. Validate outputs against strict JSON schemas, encode HTML, use parameterized SQL queries, and maintain a strong Content Security Policy in the browser.

    LLM06:2026 Unbounded Consumption and LLM07:2026 Misinformation

    LLM06:2026 covers both traditional denial of service and “Denial of Wallet”—attacks that feed worst-case context lengths, trigger recursive agent loops, or spam expensive vision/reasoning calls until API budgets evaporate. Cap max_tokens, limit agent tool iterations per request, enforce per-tenant quotas, and alert on spend spikes. For LLM07:2026 Misinformation, avoid letting unverified model prose directly trigger financial, medical, or infrastructure changes without deterministic verification or human review.

    Practical Pre-Launch Checklist for AI Developers

    1. Strip secrets from prompts: Confirm zero credentials, internal hostnames, or bypass rules sit inside system instructions.
    2. Filter RAG queries by user ACL: Verify every vector search enforces caller authorization in database filters, not prompt text.
    3. Restrict tool schemas: Expose read-only tools by default; gate state-changing actions behind deterministic policy checks and explicit user confirmation.
    4. Sanitize all model outputs: Apply strict JSON schema validation, HTML escaping, and parameterized queries—never eval() or raw string SQL.
    5. Enforce token, step, and cost caps: Set hard limits on request size, agent loop depth, and concurrent calls per user.
    6. Inventory models and MCP servers: Pin versions, verify artifact provenance, and pair web endpoints with classic OWASP Top 10 and WAF protections.

    FAQ

    Is the OWASP Top 10 for LLM Applications 2026 still the 2025 list?

    No. The OWASP GenAI Security Project released the 2026 Top 10 for LLM Applications in August–September 2026, updating rankings using both practitioner votes and 6,639 classified real-world AI incident records.

    How does the OWASP Top 10 for LLM differ from the OWASP Top 10 for Agentic Applications?

    The OWASP Top 10 for LLM Applications focuses on risks in LLM-powered apps (LLM01–LLM10), while the OWASP Top 10 for Agentic Applications (2026) (ASI01–ASI10) drills deeper into autonomous multi-step agents—covering Agent Goal Hijack, Tool Misuse, Identity & Privilege Abuse, Memory Poisoning, and Rogue Agents.

    Can prompt engineering or guardrails alone stop Prompt Injection?

    No. Because LLMs process instructions and untrusted data in the same token stream, OWASP emphasizes that no prompt phrasing guarantees immunity. Input filtering helps reduce noise, but real safety comes from least-privilege tool scoping, output validation, and deterministic authorization outside the model.

    Why did System Prompt Leakage become Hidden Context Exposure in 2026?

    Modern AI apps place much more than a static system prompt inside hidden context—including tool definitions, developer policies, user metadata, and intermediate workflow instructions. LLM08:2026 Hidden Context Exposure captures that broader leakage risk.

    What does LLM10:2026 Improper Output Handling prevent?

    It prevents downstream security vulnerabilities—such as XSS, SSRF, SQL injection, or arbitrary code execution—caused by trusting model output as safe code or commands rather than validating and encoding it like untrusted user input.

    Conclusion

    The 2026 OWASP Top 10 for LLM Applications marks a shift from theoretical prompt tricks to system-level engineering discipline. Treat the model as an untrusted component that will occasionally be fooled: keep secrets out of context, filter RAG data by caller permissions, constrain tool agency, cap consumption, and validate every output before it touches a browser, database, or shell.

    References

    All references below were verified on November 25, 2026.

    Related Articles

    Last Verified: November 25, 2026. Prepared by SafeWebAcademy from official OWASP GenAI Security Project publications linked above. AI security frameworks evolve rapidly; check genai.owasp.org for updates before major architecture reviews.

  • TLS Configuration for Nginx and Apache: TLS 1.3, Ciphers, HSTS and Certificate Renewal

    TLS Configuration for Nginx and Apache: TLS 1.3, Ciphers, HSTS and Certificate Renewal

    TLS configuration for Nginx and Apache: TLS 1.2 and 1.3, modern ciphers, HSTS and automated certificate renewal

    Introduction

    A secure TLS configuration in 2026 means TLS 1.2 and 1.3 only, a short list of forward-secret ciphers, HSTS, and automated certificate renewal. This guide gives copy-ready settings for Nginx and Apache HTTP Server, based on the TLSRef (formerly Mozilla) guidelines, IETF RFCs and the vendor documentation.

    Two things changed this year. Public certificates are now limited to 200 days, and that limit keeps shrinking. NIST also announced on November 19, 2026, that it will revise its TLS guidance. Everything below is checked as of November 30, 2026.

    Key Facts: TLS Configuration at a Glance

    • Protocols: allow TLS 1.2 and TLS 1.3. RFC 8996 deprecated TLS 1.0 and 1.1, and RFC 9325 says implementations must not negotiate them.
    • Profile: TLSRef’s “Intermediate” profile (version 6.0) is the recommended default. “Modern” allows TLS 1.3 only.
    • Ciphers: only ECDHE key exchange with AES-GCM or ChaCha20-Poly1305. Let the client choose the order.
    • HSTS: TLSRef recommends max-age=63072000 (two years). Roll it out in stages.
    • Certificates: the maximum validity is 200 days since March 15, 2026, then 100 days from March 15, 2027 and 47 days from March 15, 2029 (CA/Browser Forum).
    • Action: pin protocols and ciphers explicitly, test from outside, and automate renewal before the limit drops again.

    What Is the Safest TLS Configuration for a Web Server?

    The safest general-purpose TLS configuration is TLSRef’s Intermediate profile. It supports TLS 1.2 and 1.3, which covers nearly every client released in the last five years, according to TLSRef. TLSRef continues the Mozilla Server Side TLS guidelines, which moved to a community working group project.

    SettingIntermediate (recommended)Modern
    ProtocolsTLS 1.2, TLS 1.3TLS 1.3 only
    CertificateECDSA P-256 (recommended) or RSA 2048ECDSA P-256
    TLS curvesX25519MLKEM768, X25519, prime256v1, secp384r1same
    HSTSmax-age=63072000max-age=63072000
    Oldest clientsFirefox 31.3, Chrome 49, Java 8u161, OpenSSL 1.0.1lFirefox 63, Chrome 70, Java 11, OpenSSL 1.1.1

    Choose Modern only if you know that every client speaks TLS 1.3. For public websites, Intermediate is the safer choice.

    Why Should You Turn Off TLS 1.0 and 1.1?

    You should turn them off because the IETF deprecated both versions in RFC 8996 (March 2021). They lack modern algorithms. RFC 9325 (BCP 195, November 2022) states that implementations must not negotiate TLS 1.0 or 1.1, must support TLS 1.2, and should support TLS 1.3 and prefer it.

    Check your defaults, because they differ by server:

    ServerDocumented defaultWhat to do
    Nginxssl_protocols TLSv1.2 TLSv1.3 (TLS 1.3 included by default since 1.23.4)Set it explicitly anyway
    Apache HTTP ServerSSLProtocol all -SSLv3Replace with an explicit TLS 1.2 and 1.3 list

    On Apache, all still includes TLS 1.0 and 1.1 when the OpenSSL library supports them. Your distribution may tighten this, but do not rely on it.

    How Do You Configure TLS in Nginx?

    Set the protocols, the TLS 1.2 cipher list and session handling in the server block. The ciphers below are TLSRef’s Intermediate list for TLS 1.2. TLS 1.3 suites are set separately: TLSRef lists three, and Nginx documents ssl_conf_command Ciphersuites if you must change them.

    server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name example.com;
    
        ssl_certificate     /etc/ssl/example.com/fullchain.pem;
        ssl_certificate_key /etc/ssl/example.com/privkey.pem;
    
        ssl_protocols TLSv1.2 TLSv1.3;
        ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
        ssl_prefer_server_ciphers off;
    
        ssl_session_cache shared:SSL:10m;
        ssl_session_timeout 1d;
        ssl_session_tickets off;
    
        add_header Strict-Transport-Security "max-age=63072000" always;
    }

    Notes on these settings:

    • ssl_prefer_server_ciphers off lets the client choose, as TLSRef recommends. It is also the Nginx default.
    • Nginx documents ssl_session_tickets as on by default. Turning it off avoids ticket-key management. If you keep tickets, RFC 9325 requires regular key rotation, for example weekly.
    • Leave ssl_early_data off unless you accept replay risk. See our article on Nginx CVE-2026-132779 and ssl_early_data.
    • Leave ssl_ecdh_curve at auto. OpenSSL 3.5 documents X25519MLKEM768, a hybrid post-quantum group, in its default list.

    How Do You Configure TLS in Apache HTTP Server?

    Use mod_ssl directives with an explicit protocol list. The cipher list is the same TLSRef Intermediate set. Apache lets you set TLS 1.3 suites with the TLSv1.3 protocol specifier on OpenSSL 1.1.1 or later.

    SSLProtocol -all +TLSv1.2 +TLSv1.3
    SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305
    SSLHonorCipherOrder off
    SSLSessionTickets off
    
    <IfModule mod_headers.c>
        Header always set Strict-Transport-Security "max-age=63072000"
    </IfModule>

    The Apache documentation warns that session tickets, which are on by default, compromise perfect forward secrecy unless the server restarts regularly, for example daily. Disabling them is the simpler option. If you run Apache, keep the server current with our Apache HTTP Server 2.4.71 security update guide.

    How Do You Roll Out HSTS Safely?

    Start with a short max-age, confirm that every subdomain serves HTTPS, then raise it in stages. TLSRef recommends two years in its final profile, but a wrong HSTS header can lock users out of a broken site. Our HTTP security headers guide describes the staged plan and the preload requirements. RFC 6797 defines the header.

    How Can You Check Whether Your TLS Configuration Is Correct?

    Test from a machine outside your network and compare the result with the table above. Run these checks only against servers you own.

    # Negotiated protocol and certificate dates
    openssl s_client -connect example.com:443 -servername example.com -brief </dev/null
    openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates
    
    # TLS 1.2 should work; an old protocol should fail
    curl -sSI --tlsv1.2 --tls-max 1.2 https://example.com/ | head -n 1
    openssl s_client -connect example.com:443 -servername example.com -tls1_1 </dev/null

    The last command can also fail because your local OpenSSL refuses TLS 1.1, so treat it as a hint. For a full report, use the open-source testssl.sh (latest release v3.2.5 on November 4, 2026) or the Nmap ssl-enum-ciphers script. Both are linked in the references.

    Why Does Automated Certificate Renewal Matter Now?

    It matters because certificate lifetimes are shrinking on a fixed schedule. The CA/Browser Forum Baseline Requirements limit subscriber certificates to 200 days for those issued from March 15, 2026. The limit becomes 100 days on March 15, 2027 and 47 days on March 15, 2029.

    Maximum TLS certificate validity under the CA/Browser Forum Baseline Requirements: 398, 200, 100 and 47 days
    Maximum validity of publicly trusted TLS certificates by issue date, from the CA/Browser Forum Baseline Requirements (checked November 30, 2026).

    Let’s Encrypt is moving faster than the minimum. Its published plan schedules:

    • May 13, 2026: the opt-in tlsserver profile switches to 45-day certificates.
    • February 10, 2027: the default classic profile switches to 64-day certificates.
    • February 16, 2028: the classic profile moves to 45-day certificates.

    Let’s Encrypt advises ACME clients to use ACME Renewal Information (ARI, RFC 9773) or renew at about two thirds of the certificate lifetime. A fixed 60-day renewal interval will no longer be enough. Also add monitoring that alerts when a certificate is close to expiry.

    Let’s Encrypt also announced the end of OCSP: its timeline turned off the OCSP responders on August 6, 2025, and dropped OCSP URLs from certificates on May 7, 2025. TLSRef’s JSON still lists OCSP stapling as enabled. In practice, ssl_stapling in Nginx and SSLUseStapling in Apache (both off by default) only help if your CA still publishes OCSP. Check with your CA before you enable them.

    What Is Changing in TLS Standards?

    Standards are moving towards TLS 1.3. The IETF published RFC 9846 in July 2026. It obsoletes RFC 8446 (TLS 1.3) and RFC 5246 (TLS 1.2) and sets new requirements for TLS 1.2 implementations.

    On November 19, 2026, NIST added a planning note to SP 800-52 Rev. 2. It says the next revision will recommend that servers “may” support TLS 1.2, instead of “should”, and will not generally allow TLS 1.0 or 1.1. NIST will publish a draft SP 800-52r3 for public comment. Until then, Rev. 2 remains the current publication. If you serve government or regulated customers, watch that draft.

    Additional TLS Security Recommendations

    • Prefer ECDSA P-256 certificates, as TLSRef recommends, or RSA 2048 if you need broad compatibility.
    • Keep OpenSSL and your web server patched. See our Nginx security update article for a recent example.
    • Redirect HTTP to HTTPS, then add HSTS. Keep private keys readable by root only.
    • Do not re-enable DHE-RSA ciphers. TLSRef removed them from Intermediate because they cost more CPU and are more exposed to resource exhaustion, such as the D(HE)at attack (CVE-2002-20001).
    • Re-check after every OpenSSL, Nginx or Apache upgrade.

    FAQ

    What is the best TLS configuration for Nginx and Apache?

    Use TLS 1.2 and 1.3, the six ECDHE cipher suites from TLSRef’s Intermediate profile, a 90-day automated certificate and HSTS. The Nginx and Apache blocks above implement this.

    Is TLS 1.2 still secure in 2026?

    Yes, when configured with forward-secret AEAD ciphers. RFC 9325 still requires TLS 1.2 support. The direction is TLS 1.3, and NIST plans to make TLS 1.2 optional in its next revision.

    Should I disable TLS 1.2 and use TLS 1.3 only?

    Only if all your clients support TLS 1.3. TLSRef’s Modern profile does that, with Firefox 63, Chrome 70 or newer clients. Most public sites keep TLS 1.2.

    Do I need OCSP stapling?

    Not necessarily. Let’s Encrypt ended OCSP, so stapling is of little use for its certificates. Enable stapling only if your CA still provides an OCSP responder.

    How often should I renew TLS certificates?

    Automate renewal at about two thirds of the certificate lifetime, or use ARI. With 200-day certificates today and 47-day certificates by 2029, manual renewal will not scale.

    References

    Related Articles

    Last Verified: November 30, 2026. Facts come from the sources above. Check your own OpenSSL, Nginx and Apache versions before you apply the settings.

  • Web Application Firewall Rules: OWASP CRS, ModSecurity, Nginx WAF and Tuning

    Web Application Firewall Rules: OWASP CRS, ModSecurity, Nginx WAF and Tuning

    Web Application Firewall rules guide graphic: anomaly scoring, paranoia levels, rule exclusions, and virtual patching beside an orange WAF shield

    Introduction

    Deploying a WAF in front of an app is easy; getting web application firewall rules right without blocking legitimate users—or quietly turning the rules off when false alarms hit—is the hard part. If you already know the basics from our complete guide to web application firewalls, this article focuses on the rule layer itself: how ModSecurity and the OWASP Core Rule Set (CRS) evaluate HTTP requests, how to run a safe nginx WAF, how anomaly scoring and paranoia levels work, how to tune false positives cleanly, and where WAF rules stop helping.

    As of November 25, 2026, the OWASP Core Rule Set project maintains the CRS 4.x branch—with v4.31.0 released on November 23, 2026 and v4.25.2 serving as the current LTS release—while CRS 3.3.x has reached end of life. On the engine side, ModSecurity v3.0.17 (and the ModSecurity-nginx connector) remains a widely used open-source SecRules engine for nginx, alongside Apache mod_security2 and the Go-based OWASP Coraza engine (v3.8.1). Understanding how these rules score traffic lets you keep protection high without breaking forms, CMS editors, or APIs.

    Key Facts: Web Application Firewall Rules at a Glance

    • Core open-source ruleset: OWASP CRS (v4.31.0 latest; v4.25.2 LTS as of November 25, 2026; CRS 3.3.x is EOL) provides generic detection for SQLi, XSS, RCE, path traversal, and protocol anomalies.
    • Anomaly scoring beats single-rule blocking: CRS rules add points (CRITICAL +5, ERROR +4, WARNING +3, NOTICE +2) and block only when the transaction total meets the threshold (default 5).
    • Four Paranoia Levels (PL1–PL4): PL1 aims for baseline protection with minimal false positives; PL2–PL4 catch sneakier payloads but require active rule exclusions.
    • Nginx WAF setup: Uses libmodsecurity (ModSecurity v3) with the ModSecurity-nginx connector—or compatible alternatives like Coraza—and should start in DetectionOnly mode.
    • CRS 4.31.0 migration caveat: tx.allowed_methods and tx.allowed_http_versions now require pipe-delimited tokens (such as |GET| |POST| and |HTTP/1.1| |HTTP/2|) instead of space-separated strings.
    • Virtual patching limit: OWASP warns that WAF rules only inspect traffic they see and payloads their rules match—they reduce exposure temporarily, never replacing code fixes.

    Types of Web Application Firewall Rules

    Not all web application firewall rules serve the same purpose. Most production deployments combine four categories:

    1. Managed generic rulesets (negative security model): Rules like OWASP CRS look for known attack patterns—SQL keywords in parameters, <script> handlers, shell command separators, or malformed HTTP headers. Because they use a blocklist approach, they work out of the box across many frameworks.
    2. Protocol enforcement and positive allowlists: Rules that enforce valid HTTP methods, allowed Content-Type charsets, maximum argument counts, and strict schema validation on JSON APIs. Positive rules reject anything outside expected structure.
    3. Rate-limiting and bot rules: Rules throttling repeated POST /wp-login.php or credential-stuffing requests by IP, session, or endpoint—often handled jointly by nginx limit_req and WAF rules.
    4. Virtual patches (custom targeted rules): Short-term rules written for a specific CVE or zero-day endpoint while developers test and ship the real source code fix.

    How OWASP CRS Anomaly Scoring Works

    Older WAF setups used self-contained mode, where the first matching rule immediately dropped the request with HTTP 403. That made tuning painful because one noisy rule hid other matches and forced risky all-or-nothing overrides.

    OWASP CRS solves this with anomaly scoring (collaborative detection). Individual detection rules do not block on their own. Instead, they inspect the request (or response), log a match, and increment a transaction variable:

    • CRITICAL match: +5 points
    • ERROR match: +4 points
    • WARNING match: +3 points
    • NOTICE match: +2 points

    By default, CRS sets the inbound anomaly threshold to 5. A single CRITICAL SQL-injection rule triggers an immediate block at evaluation time, whereas two WARNING anomalies (3 + 3 = 6) combine to block a suspicious request even if neither rule alone looked conclusive. Separate inbound and outbound scores let you block leaked database error strings in responses (RESPONSE_BODY) independently of inbound checks.

    One subtle CRS detail: unless early blocking (tx.early_blocking=1, rule 900120 in crs-setup.conf) is enabled, blocking evaluation runs after Phase 2 rules finish. If your web server issues a redirect in Phase 1 before Phase 2 evaluation, a malicious Phase 1 request could slip through with a redirect instead of a 403.

    OWASP CRS anomaly scoring pipeline and four-step false-positive tuning loop
    CRS rules accumulate an anomaly score per request before threshold evaluation; tune false positives with targeted rule exclusions rather than disabling the WAF.

    Choosing and Upgrading Paranoia Levels Safely

    OWASP CRS organizes rules into four Paranoia Levels (PL):

    Paranoia LevelIntended EnvironmentFalse Positive RiskRecommended Approach
    PL 1Any internet-facing web app or APIVery low (baseline)Default starting point for all sites
    PL 2Apps handling user accounts or personal dataModerateExpect exclusions for rich-text/HTML forms
    PL 3Financial portals, high-value enterprise appsHigh without tuningRequire dedicated staging and audit log review
    PL 4Maximum-sensitivity gatewaysVery highOnly with sustained security engineering time

    Instead of raising the anomaly threshold to 10 when moving from PL1 to PL2—which OWASP CRS explicitly discourages because single low-scoring attack classes would stop blocking—use Executing Paranoia Level (tx.executing_paranoia_level). Keep your blocking paranoia level at 1, set tx.executing_paranoia_level=2, and CRS will log PL2 matches without counting them toward the blocking score. Once you have written exclusions for legitimate traffic, raise the blocking paranoia level to 2.

    Setting Up an Nginx WAF with ModSecurity and OWASP CRS

    Unlike Apache (mod_security2), nginx uses ModSecurity v3 (libmodsecurity) compiled as a dynamic module via the ModSecurity-nginx connector. A minimal nginx server block looks like this:

    server {
        listen 443 ssl;
        server_name example.com;
    
        modsecurity on;
        modsecurity_rules_file /etc/nginx/modsec/main.conf;
    
        location / {
            proxy_pass http://app_backend;
        }
    }

    Inside /etc/nginx/modsec/main.conf, include the core ModSecurity configuration (SecRuleEngine DetectionOnly initially), crs-setup.conf, and the CRS .conf rules directory.

    If you are deploying or upgrading to OWASP CRS v4.31.0 (released November 23, 2026), watch out for its breaking syntax change in crs-setup.conf: tx.allowed_methods (rule 900200) and tx.allowed_http_versions (rule 900230) now require pipe-delimited entries rather than space-separated strings:

    SecAction \
      "id:900200,\
      phase:1,\
      pass,\
      t:none,\
      nolog,\
      setvar:'tx.allowed_methods=|GET| |HEAD| |POST| |OPTIONS|'"

    Leaving old space-separated values in a custom crs-setup.conf causes rules 911100 and 920430 to flag every request. Also keep nginx itself patched alongside your WAF—see our nginx security update guide.

    Tuning False Positives Without Gutting Security

    Every real-world app eventually hits a false positive—for example, a CMS admin saving <script> or <h1> markup in a post editor triggers CRS XSS rule 941320 on ARGS:wp_post. Never turn off the entire WAF or delete core .conf files, because your edits will be wiped on the next CRS upgrade.

    Instead, CRS provides two dedicated exclusion files:

    • REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf for runtime exclusions (ctl:ruleRemoveById / ctl:ruleRemoveTargetById), which inspect the URI or host first and modify CRS behavior per request.
    • RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf for configure-time exclusions (SecRuleRemoveById / SecRuleUpdateTargetById), which execute after CRS rules are loaded.

    Prefer the narrowest scope possible: exclude a single parameter on a single URI path, not an entire rule globally:

    # Runtime exclusion placed BEFORE CRS rules:
    # Allow HTML tags inside the 'content' field only on /wp-admin/post.php
    SecRule REQUEST_URI "@beginsWith /wp-admin/post.php" \
        "id:10010,\
        phase:1,\
        pass,\
        t:none,\
        nolog,\
        ctl:ruleRemoveTargetById=941320;ARGS:content"

    CRS also ships official exclusion plugins for common applications such as WordPress, Drupal, Nextcloud, and phpMyAdmin. Scope those plugins to the exact path or hostname where the app lives rather than enabling them site-wide.

    Virtual Patching and Where WAF Rules Fall Short

    When a critical vulnerability drops—like Drupal core CVE-2026-132165, where attackers target /core/install.php—a targeted WAF rule or web-server deny rule buys crucial time before maintenance windows open. Following the OWASP Virtual Patching Cheat Sheet, treat a virtual patch as a formal six-step process: prepare, identify, analyze the exact vulnerable parameter or route, write a targeted rule, test in log-only mode against evasion encodings (URL encoding, case variations, path normalization), and track its removal once the source patch ships.

    Even well-tuned web application firewall rules cannot catch everything. WAFs inspect HTTP syntax, not business logic:

    • Broken object-level authorization (IDOR) and flawed access control from the OWASP Top 10 look like normal requests on the wire.
    • Weak browser protections require HTTP security headers, not just request filtering.
    • Encrypted TLS termination issues or server process bugs (such as HTTP/2 or early-data flaws) happen before or outside WAF payload inspection.

    FAQ

    Should I run ModSecurity and OWASP CRS in DetectionOnly mode first?

    Yes. Always launch new WAF deployments or higher paranoia levels in SecRuleEngine DetectionOnly (or use tx.executing_paranoia_level) for at least several days of representative production traffic, review the audit logs, write targeted exclusions, and only then switch to SecRuleEngine On.

    What is the difference between ModSecurity v2, ModSecurity v3, and Coraza?

    ModSecurity v2 runs tightly integrated as an Apache module (mod_security2). ModSecurity v3 (libmodsecurity) is a standalone C++ library designed to work with connectors like ModSecurity-nginx. OWASP Coraza is a modern Go-based WAF engine compatible with SecRules and OWASP CRS.

    Why did upgrading to OWASP CRS 4.31.0 block normal GET and POST requests?

    CRS 4.31.0 changed tx.allowed_methods (rule 900200) and tx.allowed_http_versions (rule 900230) to require pipe-delimited values such as |GET| |POST|. If you carried over an older space-separated crs-setup.conf, rules 911100 and 920430 will reject valid traffic until updated.

    How do I fix a WAF false positive safely?

    Check the audit log for the exact rule ID, URI, and matched variable (such as ARGS:comment), then use ctl:ruleRemoveTargetById in BEFORE-CRS or SecRuleUpdateTargetById in AFTER-CRS so the rule still protects every other parameter and endpoint.

    Can WAF rules replace updating WordPress, Drupal, or nginx?

    No. OWASP’s Virtual Patching Cheat Sheet explicitly warns that WAF rules reduce exposure only for inspected traffic and known payload patterns; alternate encodings or uninspected paths can bypass signatures. Always apply vendor security updates.

    Conclusion

    Effective web application firewall rules balance broad attack coverage with surgical tuning. Start with OWASP CRS 4 at Paranoia Level 1 in DetectionOnly mode, understand how anomaly scoring combines warnings, use Executing Paranoia Level and parameter-scoped exclusions to eliminate false alarms, and pair your WAF with timely patching and strong HTTP security headers.

    References

    All references below were verified on November 25, 2026.

    Related Articles

    Last Verified: November 25, 2026. Prepared by SafeWebAcademy from OWASP CRS, ModSecurity, and OWASP Cheat Sheet documentation linked above. Ruleset releases and syntax evolve; verify crs-setup.conf breaking changes before upgrading.

  • Jenkins Security Update: Pipeline Sandbox Bypass and 10 More Plugin Flaws Fixed

    Jenkins Security Update: Pipeline Sandbox Bypass and 10 More Plugin Flaws Fixed

    Jenkins security update November 2026: 11 plugins fixed, including Pipeline: Groovy sandbox bypass CVE-2026-136834

    Introduction

    The Jenkins security update published on November 25, 2026, fixes vulnerabilities in 11 Jenkins plugins, including two Groovy sandbox bypasses and an arbitrary code execution flaw in the Warnings Plugin. Jenkins core is not part of this advisory, so the work for administrators is updating plugins.

    If your CI server runs Pipeline: Groovy, Script Security, Warnings, Configuration as Code or Gradle, plan the update now. This guide summarizes the official Jenkins advisory and contains no exploit details.

    Key Facts: Jenkins Security Update at a Glance

    • What: Jenkins Security Advisory 2026-11-25 covers 11 plugins and 21 CVE IDs (CVE-2026-136834 to CVE-2026-136854).
    • Most serious: sandbox bypass in Pipeline: Groovy (CVE-2026-136834) and Script Security (CVE-2026-136835), code execution in Warnings (CVE-2026-136837), file read in Configuration as Code (CVE-2026-136840) and XXE in Gradle (CVE-2026-136836).
    • Who can exploit: most issues need some access, for example permission to define and run sandboxed Pipelines, Overall/SystemRead, or control over workspace contents or reports. The Nested View CSRF instead needs a signed-in user to be tricked into a request.
    • Severity: 7 High and 4 Medium (Jenkins advisory). Our CVSS 3.1 base scores, calculated from the vectors Jenkins publishes, range from 4.3 to 8.8.
    • Exploitation: no exploitation is reported in the advisory, and none of these CVEs is in the CISA KEV catalog (version 2026.11.27) as of November 29, 2026.
    • Fix: update each affected plugin to the fixed version in the table below or newer.

    Vulnerability Overview: What Does the Jenkins Security Update Fix?

    The advisory fixes sandbox bypasses, code execution, file read, XXE, stored XSS, CSRF, SSRF and missing permission checks. The High-rated issues are:

    CVEPluginIssueCVSS 3.1 (from Jenkins vector)
    CVE-2026-136834Pipeline: GroovySandbox bypass via interface field initializers8.8 High
    CVE-2026-136837WarningsInline Groovy parser is parsed on the controller: code execution8.8 High
    CVE-2026-136842PerformanceStored XSS via javascript: links in Taurus reports8.0 High
    CVE-2026-136854Rich Text PublisherStored XSS via job names in error messages8.0 High
    CVE-2026-136835Script SecuritySandbox bypass via partially qualified @Builder annotation7.5 High
    CVE-2026-136840Configuration as CodeYAML validation resolves variables: file, environment and secret read7.2 High
    CVE-2026-136836GradleXXE when reading .mvn/extensions.xml from workspaces7.1 High

    The Medium issues are an SSRF flaw in Subversion that reveals whether paths exist on the controller (CVE-2026-136838, CVE-2026-136839), CSRF in Nested View (CVE-2026-136841), CSRF and a missing permission check in Spira Importer (CVE-2026-136843, CVE-2026-136844), and missing permission checks in Pipeline DORA Metrics (CVE-2026-136845 to CVE-2026-136853).

    Jenkins security update: CVSS 3.1 base scores of the 11 plugin issues fixed on November 25, 2026
    CVSS 3.1 base scores calculated from the vectors in Jenkins Security Advisory 2026-11-25. Seven issues are High, four are Medium.

    Affected Versions: Which Plugins Need the Jenkins Security Update?

    Jenkins says all prior versions are affected unless otherwise indicated. Update to the fixed version or any newer release.

    Plugin (ID)AffectedFixed in
    Pipeline: Groovy (workflow-cps)4403.v471713a_cea_19 and earlier4403.4405.va_b_cdb_b_d0b_89f
    Script Security (script-security)1436.v1082791135e4 and earlier1436.1438.v3dc5ef7d16f2
    Warnings (warnings-ng)13.10251.va_452d3553728 to 13.10365.v85cd7a_c8110b_13.10365.10367.v2db_e2de17661
    Configuration as Code (configuration-as-code)2134.ve13a_2fc90835 to 2147.v8a_8d38668c72, except 2140.2142.v3836c98f1b_302148.v9d0c041b_a_13c
    Gradle (gradle)2.21.1282.v024680ce00a_b_ and earlier2.22.1283.v53b_41fe4cb_d9
    Performance (performance)1024.ve69e11844523 and earlier1025.ve64297f8ccb_c
    Rich Text Publisher (rich-text-publisher-plugin)1.5 and earlier1.6
    Subversion (subversion)1327.vc36e0019a_653 and earlier1349.v15e470a_46048
    Nested View (nested-view)241.v178f0b_a_cd76a_ and earlier262.v4e24ddfe477e
    Spira Importer (inflectra-spira-integration)4.0.0 and earlier58.v33212b_f5b_2d1
    Pipeline DORA Metrics (pipeline-dora-metrics)40.vdfd2cb_f019d5 and earlier43.v0b_b_d09ef2440

    As of November 29, 2026, the Jenkins update center offers these fixed versions or newer ones. Its metadata lists Jenkins 2.568.1 as the minimum core for the fixed Pipeline: Groovy release, so controllers on older cores must update Jenkins first.

    Security Impact: Who Can Exploit These Jenkins Flaws?

    The impact is highest where many people can edit jobs or Pipelines.

    • Sandbox bypass (CVE-2026-136834, CVE-2026-136835): attackers who can define and run sandboxed Pipelines or scripts may execute code outside the sandbox. For Pipeline: Groovy, Jenkins says this means arbitrary code in the context of the controller JVM. The Script Security bypass works only “in the rare case” a suitable class is on the classpath.
    • Warnings (CVE-2026-136837): attackers able to define inline Groovy parsers can execute arbitrary code on the controller.
    • Configuration as Code (CVE-2026-136840): users with Overall/SystemRead can read files, environment variables, system properties and secrets. This affects only controllers where SystemRead is enabled and granted. Jenkins notes that reading files can lead to remote code execution.
    • Gradle (CVE-2026-136836): attackers who control workspace contents can extract secrets or trigger server-side requests, but only with the Develocity Maven auto-injection feature enabled.
    • Stored XSS (CVE-2026-136842, CVE-2026-136854): a script in a Jenkins page runs in the browser of whoever views it, possibly an administrator.

    A compromised controller can expose build secrets, deployment credentials and source code, which makes CI servers a software supply chain target. Jenkins sandbox bypasses have been exploited before: CISA KEV lists the Script Security sandbox bypass CVE-2019-1003029 (added in 2022).

    How to Check Whether You Are Affected

    You are affected if one of the 11 plugins is installed at an affected version. Three quick checks:

    1. Plugin manager: open Manage Jenkins > Plugins > Updates, click Check now and look for the plugins listed above.
    2. Built-in warnings: Jenkins informs administrators directly in the UI when affected versions of Jenkins or plugins are installed.
    3. Version list: the Jenkins documentation shows how to list installed plugins and versions in Manage Jenkins > Script Console (administrators only):
    Jenkins.instance.pluginManager.plugins.each {
        println("${it.getShortName()}: ${it.getVersion()}")
    }

    Compare the output with the plugin IDs above. Also check whether Overall/SystemRead is granted (Configuration as Code) and whether Develocity Maven auto-injection is enabled (Gradle).

    How to Fix the Vulnerability: Applying the Jenkins Security Update

    The only complete fix is updating the plugins. The advisory lists no workaround except for the two XSS flaws.

    1. Back up JENKINS_HOME or snapshot the controller.
    2. If you run a core older than 2.568.1, update Jenkins first so the Pipeline: Groovy fix can be installed.
    3. In Manage Jenkins > Plugins > Updates, select the affected plugins and click Download now and install after restart. Restart when no builds are running.
    4. If you build controller images with a pinned plugin list, raise the versions in that list and rebuild.
    5. Confirm the new versions with the plugin list or Script Console output.

    For the stored XSS issues, Jenkins says enforcing Content Security Policy protection mitigates them on Jenkins 2.539 and newer or LTS 2.541.1 and newer. Enable it under Manage Jenkins > Security > Enforce Content Security Policy after testing, as the Jenkins CSP documentation describes. CSP is an extra layer, not a replacement for the update.

    Additional Security Recommendations

    • Limit who can create or configure jobs and Pipelines. The sandbox is a safety net, not a permission boundary to rely on.
    • Grant Overall/SystemRead only to people who need it.
    • Keep the Jenkins controller off the public internet or behind SSO and a VPN.
    • Remove plugins you no longer use; each one adds attack surface.
    • Subscribe to the jenkinsci-advisories group or the advisories RSS feed and patch on a schedule.

    FAQ

    Does the Jenkins security update affect Jenkins core?

    No. Advisory 2026-11-25 lists only plugins. You still may need a newer core to install the fixed Pipeline: Groovy release.

    Is CVE-2026-136834 being exploited?

    As of November 29, 2026, the Jenkins advisory reports no exploitation, and the CVE is not in the CISA KEV catalog. This can change, so check KEV again.

    Are CVE records available for these Jenkins issues?

    Yes. Jenkins is a CVE Numbering Authority, and CVE.org shows all 21 records as published on November 25, 2026. NVD had received CVE-2026-136834 but had not analyzed it yet when we checked.

    Conclusion

    This Jenkins security update closes sandbox bypasses, a code execution flaw and several data exposure bugs in 11 plugins. Update the plugins today, review who can edit Pipelines and grant SystemRead, and enforce CSP where your plugins allow it.

    References

    Related Articles

    Last Verified: November 29, 2026. Prepared by SafeWebAcademy from the official Jenkins security advisory and documentation, CVE.org, NVD, the Jenkins update center and the CISA KEV catalog linked above. This is not an official Jenkins project publication. Security details can change, so check the linked advisory for updates.

  • Laravel Security Update: Fix the JSON Request DoS (GHSA-8h64-cpq2-9h2g)

    Laravel Security Update: Fix the JSON Request DoS (GHSA-8h64-cpq2-9h2g)

    Laravel security update graphic: GHSA-8h64-cpq2-9h2g JSON request denial of service fixed in Laravel 13.38.0 and 12.74.0

    Introduction

    A new Laravel security update fixes a high-severity denial-of-service (DoS) flaw in the framework’s request handling. On November 23, 2026, the Laravel team published advisory GHSA-8h64-cpq2-9h2g. It warns that a crafted JSON request of ordinary size can make an application burn far too much CPU and memory.

    According to the advisory, an unauthenticated attacker can send a few of these requests at once, use up every PHP worker and take the application offline. The fix is in laravel/framework 13.38.0 and 12.74.0. This guide explains who is affected, how to check your version and how to update, without exploit details.

    Key Facts: Laravel Security Update at a Glance

    • What: denial of service through a crafted JSON request body (GitHub advisory GHSA-8h64-cpq2-9h2g, published November 23, 2026).
    • Component: the TransformsRequest middleware used by the default global middleware TrimStrings and ConvertEmptyStringsToNull.
    • Affected: laravel/framework below 13.38.0 on Laravel 13 and below 12.74.0 on Laravel 12. Older branches no longer receive security fixes.
    • Fixed in: 13.38.0 (released October 20, 2026) and 12.74.0 (released November 24, 2026). The newest releases on November 28, 2026 are still 13.44.1 and 12.74.0.
    • Severity: “High”, CVSS v3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), as scored in the Laravel advisory.
    • CVE: pending. No CVE ID had been assigned as of November 28, 2026.
    • Exploitation: the official advisory does not report exploitation, and the flaw is not in the CISA KEV catalog (version 2026.11.27).
    • Action: run composer update laravel/framework, deploy, and restart PHP workers.

    What Is the Laravel JSON Request DoS Vulnerability?

    It is an algorithmic resource-exhaustion bug in the code that cleans request input before your controllers see it. Laravel trims strings and converts empty strings to null for every request through the TrimStrings and ConvertEmptyStringsToNull middleware. Both build on a shared helper called TransformsRequest.

    The pull request that backported the fix to Laravel 12 describes the cause. The helper rebuilt a full key name for every element of a nested array. With unusually long keys and large arrays, the work grew far faster than the size of the request. The pull request reports that a JSON body of under 1 MB could cause about 30 seconds of CPU time.

    Why does a login page not protect my app?

    Because the vulnerable middleware is global. Laravel’s documentation lists TrimStrings and ConvertEmptyStringsToNull in the default global middleware stack. According to the fix’s pull request, they run before routing and authentication, so any endpoint that accepts a JSON body is enough.

    Laravel security update diagram: JSON requests pass TrimStrings and ConvertEmptyStringsToNull before routing and auth
    The vulnerable input-cleaning middleware runs before routing and authentication.

    Which Laravel Versions Are Affected?

    Every Laravel 12 and 13 release before the fixed versions is affected, and the advisory’s range also covers older, unsupported branches.

    Laravel branchAffected laravel/framework versionsFixed versionSecurity support (Laravel policy)
    13.x13.0.0 to 13.37.x13.38.0 or later (latest: 13.44.1)until March 17, 2028
    12.x12.0.0 to 12.73.x12.74.0 or lateruntil February 24, 2027
    11.x and olderall versions (advisory range: below 12.74.0)noneended (Laravel 11: March 12, 2026)

    Laravel 13 users got the fix weeks before the advisory, in 13.38.0. Laravel 12 users had to wait for 12.74.0, released on November 24, 2026, one day after the advisory.

    What Is the Security Impact?

    The impact is availability only: an attacker can make your site slow or unreachable. The advisory does not describe any data theft or code execution, and its CVSS vector rates confidentiality and integrity impact as none.

    Still, the attack is cheap. It needs no account, the requests are small, and a handful of parallel requests can occupy every PHP-FPM worker. Typical body-size limits such as PHP’s post_max_size or nginx’s client_max_body_size do not stop it, because the payload stays small. APIs, webhooks and single-page apps that accept JSON are the most obvious targets.

    How Can I Check Whether I Am Affected?

    Check the installed laravel/framework version in each application and environment. The version that counts is the one in composer.lock on your servers, not the constraint in composer.json.

    # Show the installed framework version
    composer show laravel/framework | grep versions
    
    # Or ask Artisan
    php artisan --version

    You are affected if the result is below 13.38.0 on Laravel 13 or below 12.74.0 on Laravel 12. Any Laravel 11 or older install is affected and has no fix.

    Will composer audit find this Laravel security update?

    Not reliably yet. When we checked the Packagist security-advisory API on November 28, 2026, it still did not list GHSA-8h64-cpq2-9h2g for laravel/framework. Run composer audit for other issues, but compare the version numbers manually for this one.

    How Do I Apply the Laravel Security Update?

    Update laravel/framework to the latest patch release of your branch, deploy it, and restart the processes that serve PHP. Minor Laravel releases follow semantic versioning and should not contain breaking changes.

    # In your project, on a branch
    composer update laravel/framework --with-all-dependencies
    php artisan --version
    
    # After deploying: reload long-running workers
    php artisan octane:reload   # only if you use Laravel Octane
    sudo systemctl reload php8.4-fpm   # adjust to your PHP version

    Run your test suite before deploying, as with any dependency update. Rebuild container images that bundle the application, because an old vendor/ directory keeps the old code.

    What changes after the update?

    According to the fix’s pull request, TransformsRequest now counts key bytes per request. If the total exceeds a limit of 20 MB, Laravel stops and returns HTTP 413 (PostTooLargeException). Custom middleware that extends TransformsRequest can override the limit through $maxKeyBytes. Normal forms and API payloads stay far below it.

    Is there a workaround if I cannot update today?

    The advisory does not list an official workaround, so updating is the only real fix. Until you can deploy, reduce the damage with rate limiting for JSON endpoints and sensible PHP timeouts such as request_terminate_timeout in PHP-FPM. Also watch worker saturation and response times. These steps limit impact but do not remove the flaw.

    Additional Security Recommendations

    • Patch the whole stack. The PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 security update also matters for Laravel servers.
    • Rate-limit at the edge. A reverse proxy or a web application firewall can cap request rates per client before PHP workers are busy.
    • Monitor PHP-FPM. Alert when all workers are busy or the listen queue grows.
    • Watch Laravel advisories. Subscribe to the security advisories of the laravel/framework repository on GitHub.
    • Plan upgrades. Laravel 12 loses security fixes on February 24, 2027.
    • Review Symfony components. Laravel ships Symfony packages. After you update Laravel, also review the November 2026 Symfony security update and run composer audit.

    FAQ

    Do I need this Laravel security update if my app has no public API?

    Yes. Every request with a JSON body passes through the global middleware before routing, whatever URL it targets. A public API is not required.

    Does this vulnerability let attackers steal data?

    No evidence suggests that. The advisory describes only CPU and memory exhaustion, and its CVSS vector rates confidentiality and integrity impact as none.

    Is there a CVE ID for GHSA-8h64-cpq2-9h2g?

    Not yet. As of November 28, 2026, the advisory has no CVE ID. The GHSA ID, the affected ranges and the fixed versions are official.

    Is the Laravel JSON DoS being exploited?

    The official advisory does not report exploitation, and as of November 28, 2026 the flaw is not in the CISA KEV catalog (version 2026.11.27). Public advisories often lead to attack attempts, so update soon.

    Did the same week bring other Laravel security fixes?

    Yes. Medium-severity advisory GHSA-cq3g-fj94-c8p3 (validation rules skipped for empty array keys) is fixed in 13.43.0 and 12.73.0. GHSA-cvfq-f547-rv2g (DoS in email validation) is fixed in 13.43.0 and 12.72.0. On November 25, 2026, Laravel also published high-severity advisory GHSA-c25c-x5r7-2v5m (numeric validation can exhaust resources via extreme exponent input), fixed in 13.44.1 and 12.74.0. Updating to 13.44.1 or 12.74.0 covers all four.

    Conclusion

    This Laravel security update closes a cheap, unauthenticated DoS in the framework’s global input middleware. Check laravel/framework in every environment and update to 13.38.0 or 12.74.0 or later, ideally the newest patch release. Then restart PHP workers. Plan a move off Laravel 11 or older, because those branches will not be fixed.

    References

    All links below were checked on November 28, 2026.

    Related Articles

    Last Verified: November 28, 2026. Prepared by SafeWebAcademy from the official Laravel security advisories, the laravel/framework releases and pull request, and the Laravel documentation linked above. This is not an official Laravel publication. Security details can change, so check the linked advisories for updates.

  • WordPress Security Hardening, Updates and Hosting: A Practical Maintenance Plan

    WordPress Security Hardening, Updates and Hosting: A Practical Maintenance Plan

    WordPress security update and hardening graphic: core 7.1.5, isolated hosting, DISALLOW_FILE_EDIT, and MFA/2FA beside a green shield

    Introduction

    Keeping a WordPress site safe is rarely about a single plugin—it is about running a repeatable WordPress security update and hardening workflow on top of trustworthy hosting. WordPress core releases regular security fixes—such as the WordPress 7.1.5 security release on November 18, 2026—while third-party plugins and themes account for a large share of real-world compromises. Once an update ships, exploit details often circulate publicly within days, leaving unpatched sites exposed to automated bots.

    If you have not set up backups yet, start with our dedicated WordPress backup guide, which covers database and file exports, the 3-2-1 rule, and restore testing. This guide focuses on everything around updates, hosting, and hardening as of November 25, 2026: how to configure core and plugin updates safely, what to demand from WordPress security hosting, which wp-config.php and file-permission locks WordPress.org recommends, and how to turn those controls into a weekly, monthly, and quarterly WordPress security plan.

    Key Facts: WordPress Security Updates and Hardening

    • Current core baseline: WordPress 7.1.5 is the latest release as of November 25, 2026, with security backports down to older branches; never download core, plugins, or themes outside WordPress.org or verified vendors.
    • Automatic updates by default: WordPress enables minor core and translation updates automatically, while major core releases and plugin/theme auto-updates can be controlled via the Dashboard or wp-config.php filters.
    • Hosting matters more than people think: WordPress.org notes that on shared servers without account isolation, a compromise on a neighboring site can spill into yours even if your own install is hardened.
    • PHP lifecycle deadline: PHP 8.2 reaches end of security support on December 31, 2026, and PHP 8.4 active support ends the same day; run PHP 8.3–8.6 and patch promptly.
    • High-impact hardening locks: Set define( 'DISALLOW_FILE_EDIT', true );, restrict wp-config.php permissions (400 or 440), enforce 755 directories / 644 files, delete unused plugins/themes, and require strong passwords plus two-factor authentication (2FA).
    • Backup before every change: Always take and verify a full backup before major core or plugin upgrades.

    Building a Reliable WordPress Security Update Workflow

    Every WordPress security update balances speed against site stability. Security patches need to ship quickly, yet blindly auto-updating complex WooCommerce or page-builder stacks without a fallback can break checkout or layouts.

    WordPress divides updates into four streams—treat each differently:

    Update StreamDefault BehaviorRecommended PolicyHow to Automate Safely
    Core minor & security (e.g., 7.1.4 -> 7.1.5)Auto-enabledKeep automatic updates enabledLeave default or set WP_AUTO_UPDATE_CORE to 'minor'
    Core major (e.g., 7.1 -> 7.2)Manual / opt-inTest on staging first, then apply within daysBackup first; run via Dashboard or wp core update
    Plugins & themesManual unless opted inEnable auto-updates for simple/trusted plugins; stage complex onesEnable selectively in Dashboard or via auto_update_plugin filter
    TranslationsAuto-enabledKeep automatic updates enabledDefault WordPress behavior

    In wp-config.php, WordPress documents three settings for WP_AUTO_UPDATE_CORE:

    • true: enables both major and minor core updates.
    • 'minor' (default): enables minor security/maintenance updates while holding major releases for manual review.
    • false: disables core auto-updates (not recommended unless managed via CI/CD or WP-CLI on a strict patch schedule).

    For multi-site admins or agencies, WP-CLI makes patching auditable and scriptable over SSH:

    # Check current core and plugin update status
    wp core check-update
    wp plugin list --update=available
    
    # Apply minor security release and update database schema if needed
    wp core update --minor
    wp core update-db

    Two rules cut plugin risk dramatically: delete inactive plugins and themes completely (do not just deactivate them, because their PHP files remain reachable on disk), and never install “nulled” or pirated themes/plugins from third-party download sites.

    Choosing WordPress Security Hosting (What Actually Matters)

    WordPress.org draws a clear boundary between host responsibility and site-owner responsibility: your host secures the infrastructure and server software, while you secure WordPress, plugins, and user access. Weak hosting can undo careful application hardening.

    When evaluating WordPress security hosting, verify five technical controls before you look at marketing badges:

    1. Tenant isolation: On cheap shared hosting without per-account containerization (such as CloudLinux/CageFS or isolated VPS/containers), one hacked neighbor can expose neighboring sites on the same server.
    2. Supported PHP versions: Confirm the host provides actively maintained PHP branches and timely security patches. As of November 25, 2026, PHP 8.2 loses security support on December 31, 2026, while PHP 8.3 (security support through Dec 2027), 8.4 (through Dec 2028), 8.5 (through Dec 2029), and newly released 8.6 remain supported. See our PHP security update guide for why timely PHP patching matters.
    3. Encrypted transport only (TLS, SFTP/SSH): WordPress.org specifically advises using SFTP instead of plaintext FTP so credentials are never sent unencrypted, and enforcing HTTPS across both the public site and wp-admin.
    4. Upstream WAF and brute-force throttling: A host or edge web application firewall filters common exploit scans and login floods before PHP workers spin up.
    5. One-click staging and automated off-site backups: Staging lets you verify major core and plugin updates before touching production, while independent backups ensure rapid recovery.
    Four layers of a repeatable WordPress security plan showing hosting, server files, core/plugin updates, and access controls with weekly, monthly, and quarterly cadence
    A durable WordPress security plan combines isolated hosting, strict file permissions, prompt updates, and strong authentication on a regular maintenance cadence.

    Essential Server and wp-config.php Hardening

    The official WordPress Hardening Guide centers on two themes: limiting access and containment (limiting what an attacker can touch if one component fails). Apply these core controls:

    1. Disable the Built-In Theme and Plugin File Editor

    By default, any administrator account can edit live PHP files from the WordPress Dashboard (Appearance > Theme File Editor or Plugins > Plugin File Editor). Attackers who steal an admin login use this feature immediately for code execution. Add this line to wp-config.php:

    define( 'DISALLOW_FILE_EDIT', true );

    2. Lock Down File Permissions and wp-config.php

    WordPress recommends setting directory permissions to 755 and file permissions to 644, owned by your site account rather than leaving /wp-admin/ or /wp-includes/ world- or web-server-writable everywhere. Tighten wp-config.php to 400 or 440 so only your user (and the web server if required by group) can read database credentials, and block direct HTTP access to it in Apache .htaccess (or equivalent nginx location block):

    <Files "wp-config.php">
        Require all denied
    </Files>

    3. Protect wp-includes/ and Block PHP Execution in Uploads

    Uploads directories (wp-content/uploads/) exist for images, PDFs, and media—never PHP scripts. Blocking PHP execution inside wp-content/uploads/ contains web-shell uploads if a plugin bug allows arbitrary file writes. On nginx, add a location rule before your PHP handler:

    location ~* /(?:uploads|files)/.*\.php$ {
        deny all;
    }

    On Apache, WordPress.org also documents placing mod_rewrite rules outside the # BEGIN WordPress / # END WordPress markers to block direct execution of include-only files under wp-admin/includes/ and wp-includes/ (skipping the wp-includes/*.php rule on Multisite setups using ms-files.php).

    4. Harden Headers and Database Containment

    Serve HTTP security headers—especially HSTS, X-Content-Type-Options: nosniff, Referrer-Policy, and frame-ancestors—at the web server layer, and avoid reusing the default admin username or sharing one database user across multiple unrelated sites. WordPress.org notes that if you revoke schema-altering SQL privileges (DROP, ALTER), major core or plugin updates that modify tables will fail until temporarily restored—so most sites keep standard privileges per isolated database and rely on verified backups.

    Authentication, Monitoring, and Access Control

    Even a fully patched site falls if an administrator reuses a leaked password. Lock down access with four habits:

    • Require MFA/2FA for every privileged role: Enable two-factor authentication for all administrators, editors, and shop managers, and pair it with unique, password-manager-generated passwords.
    • Rename or remove generic admin accounts: Create a unique administrator username and demote or remove generic usernames commonly targeted by brute-force bots.
    • Audit user accounts and XML-RPC exposure: Review who has Administrator or Editor access, remove departed contractors, and disable or restrict xmlrpc.php at the server/WAF layer if your site does not use Jetpack or legacy XML-RPC clients.
    • Enable login and file-integrity monitoring: Track failed login bursts, role changes, plugin installations, and unexpected .php file modifications in wp-content/ so compromises are spotted in hours instead of months.

    Your Repeatable WordPress Security Plan

    Use this schedule to turn one-time hardening into ongoing protection:

    CadenceTasks to Run
    WeeklyCheck Dashboard/WP-CLI for core, plugin, and theme updates; test major plugin updates on staging; apply security releases immediately; review failed login and WAF alerts.
    MonthlyAudit WordPress user roles; delete any deactivated plugins or unused themes; verify off-site backups and test a full restore in staging; scan error logs for PHP warnings or suspicious requests.
    QuarterlyCheck PHP branch EOL dates (upgrade off PHP 8.2 before December 31, 2026); review hosting isolation and SSL/TLS grades; rotate SFTP/SSH keys; audit wp-config.php and server security headers.

    FAQ

    Should I enable automatic updates for all WordPress plugins?

    Enable automatic updates selectively. Keep automatic minor core security updates turned on, and consider auto-updating simple, well-maintained plugins. For mission-critical plugins (e-commerce, memberships, complex builders), test updates in staging with a fresh backup first—or apply them on a tight weekly schedule and immediately upon security advisories.

    Does moving wp-config.php one directory up guarantee security?

    WordPress.org notes that moving wp-config.php one level above the web root is supported, though views differ on how much protection it adds alone. Always combine it with strict 400/440 permissions, web-server access rules denying wp-config.php, and DISALLOW_FILE_EDIT.

    What PHP version should WordPress sites run in late 2026?

    Run PHP 8.3, 8.4, 8.5, or 8.6 (if all plugins/themes are compatible). PHP 8.2 reaches end of security support on December 31, 2026, so plan migrations off 8.2 now.

    Are WordPress security plugins enough without server hardening?

    No. WordPress.org explains that PHP-level firewall plugins only run after the web server and PHP start processing the request. Combining server-level rules (disabling PHP in uploads/, proper file permissions, edge/server WAF, and supported PHP) with clean update hygiene is far stronger.

    What should I do first when a critical WordPress security update comes out?

    Verify your current backup is recent and restorable, read the release advisory to confirm affected versions, update core (or the affected plugin) immediately via Dashboard or wp core update, and check your logs if the vulnerability was already under active attack.

    Conclusion

    A strong WordPress security update routine does not require daily firefighting. Start by confirming isolated, supported-PHP hosting, lock down wp-config.php and upload directories, keep automatic minor core updates active, remove unused plugins, enforce 2FA, and follow a weekly/monthly/quarterly WordPress security plan backed by tested restores.

    References

    All references below were verified on November 25, 2026.

    Related Articles

    Last Verified: November 25, 2026. Prepared by SafeWebAcademy from WordPress.org Developer Documentation and PHP.net release schedules linked above. Release branches and PHP end-of-life dates change; recheck supported versions quarterly.

  • GeoServer Security Update: CVE-2026-120705 and CVE-2026-129243 Added to CISA KEV

    GeoServer Security Update: CVE-2026-120705 and CVE-2026-129243 Added to CISA KEV

    GeoServer security update: two CVEs in CISA KEV, fixed in 3.0.2, 2.28.6 and 2.27.7

    Introduction

    This GeoServer security update matters now because CISA added two GeoServer flaws, CVE-2026-120705 and CVE-2026-129243, to its Known Exploited Vulnerabilities (KEV) catalog on November 27, 2026. The fixes have been available since October 19, 2026, in GeoServer 3.0.2, 2.28.6 and 2.27.7. If you run GeoServer on the internet and have not upgraded, treat this as a priority.

    This guide summarizes official GeoServer and CISA information and contains no exploit details.

    Key Facts: GeoServer Security Update at a Glance

    • What: two unauthenticated GeoServer flaws, an XML injection in the WFS 2.0 GetFeatureById stored query (CVE-2026-120705) and a service-security bypass (CVE-2026-129243), are in the CISA KEV catalog.
    • Chain: CISA says they can be chained with CVE-2026-129244, CVE-2026-129245 and CVE-2026-129242 for unauthenticated remote code execution. GeoServer fixed each step separately.
    • Affected: GeoServer 2.27.6 and earlier, 2.28.0 to 2.28.5, and 3.0.0 to 3.0.1.
    • Fixed in: GeoServer 2.27.7, 2.28.6 and 3.0.2 (released October 19, 2026).
    • Severity: GeoServer’s GitHub advisories rate CVE-2026-120705 High (CVSS v3.1 8.6) and CVE-2026-129243 High (CVSS v4.0 8.8). CVE-2026-129245 is rated Critical (CVSS v4.0 9.2).
    • Exploitation: CVE-2026-120705 and CVE-2026-129243 were added to KEV on November 27, 2026, with a federal due date of November 30, 2026. KEV marks ransomware campaign use as “Unknown”. The other three chain CVEs are not in KEV as of catalog version 2026.11.27.
    • Action: upgrade, restrict the admin interface and REST API, and review your data directory.

    What Is the GeoServer Vulnerability Chain?

    GeoServer published CVE details for its October releases on November 23, 2026, and the chain consists of five separately fixed steps. Each step has its own GitHub advisory in the geoserver/geoserver repository.

    CVEIssue (from the advisory)Rating (GeoServer advisory)
    CVE-2026-129244WFS stored query error reveals the data directory pathMedium, CVSS v4.0 6.9
    CVE-2026-129243Service security rules are skipped when the service name has a prefixHigh, CVSS v4.0 8.8
    CVE-2026-120705Unauthenticated XML injection in the WFS GetFeatureById stored query: local file read and server-side requestsHigh, CVSS v3.1 8.6
    CVE-2026-129245Predictable default remember-me key allows administrator session forgeryCritical, CVSS v4.0 9.2
    CVE-2026-129242Unsafe deserialization in JDBC user and role services lets an administrator run codeHigh, CVSS v4.0 8.6
    GeoServer security update chain: five CVEs from path disclosure to code execution, fixed in 3.0.2, 2.28.6, 2.27.7
    The five steps of the GeoServer chain. CVE-2026-129243 and CVE-2026-120705 (red) are in the CISA KEV catalog.

    In plain terms: early steps let an unauthenticated visitor learn paths and read files, and later steps turn that into an administrator session and code execution. The advisory for CVE-2026-120705 says file contents are echoed back only when a layer is published to anonymous users.

    What else do the October releases fix?

    GeoServer’s November 23 post lists 17 CVEs for the October releases: 1 Critical, 12 High and 4 Medium. They include CVE-2026-120704 (code execution through SQLite JDBC extension loading, High) and several server-side request forgery (SSRF) issues. Upgrading fixes all of them.

    Which GeoServer Versions Are Affected?

    Every GeoServer release before 2.27.7, 2.28.6 and 3.0.2 is affected, according to the GitHub advisories.

    BranchAffected versionsFixed inStatus (GeoServer, Nov 23, 2026)
    3.0.x3.0.0 to 3.0.13.0.2Current stable
    2.28.x2.28.0 to 2.28.52.28.6Current maintenance
    2.27.x2.27.6 and earlier2.27.7Fixed release published

    Older branches are not listed with fixes. GeoServer says to upgrade to a supported release at least once a year to keep receiving security fixes.

    What Is the Security Impact?

    Without the GeoServer security update, unauthenticated attackers could read files readable by the GeoServer process, make the server fetch URLs, and, in a chain, take over an administrator session. CISA’s KEV entry describes the chain as leading to unauthenticated remote code execution.

    Because CISA lists these as exploited, also review instances that were internet-facing before you upgraded.

    How Can I Check Whether I Am Affected?

    Check the GeoServer version, then check whether the instance is reachable from outside.

    1. Version: open the About GeoServer page in the web admin. When you are logged in it lists build information. The documented REST endpoint /rest/about/version reports it too.
    2. Exposure: find out whether the /geoserver web application or its WFS endpoint is reachable from the internet or from untrusted networks.
    3. Stored queries: the advisory for CVE-2026-129243 asks you to review the wfs/query and workspaces/*/wfs/query folders in the data directory for stored queries you did not create.
    4. Administrators: review accounts and recent administrator logins.
    # Report the GeoServer version over REST (admin credentials required)
    curl -u admin https://gis.example.com/geoserver/rest/about/version.xml

    How Do I Apply the GeoServer Security Update?

    The GeoServer security update is an upgrade to 3.0.2, 2.28.6 or 2.27.7, which fix all five chain steps.

    1. Back up your data directory and configuration.
    2. Download the matching release from the GeoServer download page. Stay on your current branch unless you plan a migration.
    3. Upgrade and restart the application server.
    4. Expect side effects: GeoServer says existing remember-me cookies are invalidated on upgrade, and each node now uses a random key. In a cluster, set a shared key with the GEOSERVER_REMEMBERME_KEY application property.
    5. If JDBC security services need extra connection parameters, the fix adds the GEOSERVER_JDBC_EXTRA_PARAMETERS property for that.
    6. Re-check the version on the About page.

    What can I do if I cannot upgrade today?

    These mitigations come from the GeoServer advisories. They reduce risk but do not replace the upgrade.

    CVEVendor-documented mitigation
    CVE-2026-120705Restrict or disable WFS for anonymous users using service security, or disable WFS if you do not need it
    CVE-2026-129243Block requests whose service parameter contains a / at a proxy in front of GeoServer
    CVE-2026-129245Remove rememberme from the web filter chain (Security > Authentication), or set a long random key and protect the data directory
    CVE-2026-129242Limit administrator access and restrict /rest/resource and /rest/security to trusted networks
    CVE-2026-120704Restrict the admin console and REST API, and do not install unneeded JDBC drivers such as SQLite

    Additional Security Recommendations

    • Keep admin interfaces private. Put the admin console and REST API behind a VPN or an allow-list. A web application firewall is only an extra layer.
    • Run with least privilege. Run GeoServer as a dedicated low-privilege user with limited file and network access.
    • Track exploited bugs after this GeoServer security update. Use the CISA KEV catalog as a patch-priority signal. Our guide What Is a CVE? explains KEV, CVSS and triage.
    • Plan for incident response. If you find signs of takeover, rotate credentials and rebuild from a trusted backup.

    FAQ

    Is the GeoServer vulnerability being exploited?

    CISA added CVE-2026-120705 and CVE-2026-129243 to KEV on November 27, 2026, which means it has evidence of exploitation. The public KEV entries do not name the attackers or the targets. The other three chain CVEs are not in KEV as of version 2026.11.27.

    Which version does the GeoServer security update need?

    Install 3.0.2 on the 3.0 branch, 2.28.6 on the 2.28 branch or 2.27.7 on the 2.27 branch. All three were released on October 19, 2026.

    Do I need to change passwords after upgrading?

    GeoServer says to change administrator passwords if you suspect exposure. The upgrade itself invalidates existing remember-me cookies.

    Are CVE records available?

    The IDs come from the GeoServer advisories and the CISA KEV catalog. When we checked on November 28, 2026, the CVE.org API and the NVD API did not return records for these IDs yet, so scores here come from the GeoServer GitHub advisories.

    Conclusion

    This GeoServer security update closes a five-step chain, and CISA says two steps are exploited. Upgrade to 3.0.2, 2.28.6 or 2.27.7, keep the admin console off the public internet and check your data directory and administrator accounts.

    References

    Related Articles

    Last Verified: November 28, 2026. Prepared by SafeWebAcademy from the official GeoServer announcements, GitHub security advisories and documentation, and the CISA KEV catalog linked above. This is not an official GeoServer or OSGeo publication. Security details can change, so check the linked advisories for updates.

  • Symfony Security Update: 23 CVEs Fixed in 8.1.12, 7.4.24, 6.4.51 and 5.4.57

    Symfony Security Update: 23 CVEs Fixed in 8.1.12, 7.4.24, 6.4.51 and 5.4.57

    Symfony security update graphic: 23 CVEs fixed in Symfony 8.1.12, 7.4.24, 6.4.51 and 5.4.57 on November 25, 2026

    Introduction

    The Symfony security update of November 25, 2026 fixes 23 vulnerabilities in Symfony components, and six of them are rated high. Symfony released 8.1.12, 7.4.24, 6.4.51 and 5.4.57 the same morning. If you run a Symfony application, or a PHP project built on Symfony components such as Drupal or Laravel, plan the update this week.

    This guide summarizes the official advisories and shows how to check and update your project. It contains no exploit details.

    Key Facts: Symfony Security Update at a Glance

    • What: 23 security fixes in Symfony components, published November 25, 2026 (releases 09:17-09:31 UTC, 11:17-11:31 Kyiv time).
    • IDs: CVE-2026-133743 to CVE-2026-133762 and CVE-2026-134790 to CVE-2026-134792, each with a GitHub advisory in the symfony/symfony repository.
    • Severity: 6 high, 16 medium, 1 low (GitHub advisory ratings). Symfony, the CVE numbering authority, gives CVSS v4.0 scores from 2.3 to 8.7. NVD has not added its own scores yet.
    • Fixed in: 8.1.12, 7.4.24, 6.4.51 and 5.4.57. The 7.4 and 8.1 releases contain all 23 fixes; 6.4.51 lists 16 and 5.4.57 lists 15, because many bugs only exist in newer code.
    • Exploitation: no known exploitation. None of the CVEs is in the CISA KEV catalog (version 2026.11.25), and CISA’s assessment on the CVE records says “Exploitation: none” where present.
    • Action: run composer update "symfony/*" within your branch, test, deploy and restart long-running PHP workers.

    Which Vulnerabilities Does the Symfony Security Update Fix?

    The six high-severity issues are two denial-of-service bugs in ExpressionLanguage, one in the Serializer, two HttpClient credential or proxy leaks, and an HttpKernel URL injection.

    CVEComponentIssue (from the advisory)CVSS v4.0
    CVE-2026-134791ExpressionLanguageUnclosed /* comments make the lexer quadratic, so untrusted expressions can hold a process8.7
    CVE-2026-133760ExpressionLanguageNested short ternaries make the nesting check exponential8.7
    CVE-2026-133761SerializerCsvEncoder nests rows once per key separator; a small CSV body can crash PHP8.7
    CVE-2026-134792HttpClientIn HTTP workers under the CLI SAPI, a request’s Proxy header can choose the proxy for outgoing requests8.3
    CVE-2026-133757HttpClientNoPrivateNetworkHttpClient sends default credentials to other origins on redirects8.2
    CVE-2026-133743HttpKernelInline fragments let forwarded headers change asset() and absolute_url() URLs (incomplete fix for CVE-2026-123339)7.0

    What are the medium and low issues?

    The other 17 issues have narrower conditions, such as a specific configuration or a man in the middle:

    • HttpClient and FrameworkBundle: CachingHttpClient can share responses between users when credentials are set with withOptions() (CVE-2026-133750); cached scoped clients send their credentials to any origin (CVE-2026-133747); NoPrivateNetworkHttpClient makes the decorated client ignore its own default options, such as certificate pinning (CVE-2026-133758) and lets IPv4-mapped addresses through custom subnets (CVE-2026-133748).
    • Redirects and URLs: login redirect host check bypass when the session cookie domain is set (CVE-2026-134790), UrlGenerator host issues (CVE-2026-133754, CVE-2026-133746), and // paths in router redirects (CVE-2026-133745).
    • Security: the unanimous strategy grants access_control rules when only one role matches (CVE-2026-133753); the Doctrine remember-me provider accepts outdated tokens (CVE-2026-133759); Guard logins skip checkPostAuth() (CVE-2026-133749, low, 5.4 only).
    • Other components: full exception dumps from CLI-SAPI HTTP workers without APP_RUNTIME_MODE (CVE-2026-133762), #[Ignore] bypass in the Serializer (CVE-2026-133752), Mailer STARTTLS and require_tls issues (CVE-2026-133755, CVE-2026-133751), HtmlSanitizer meta refresh check (CVE-2026-133756) and JsonPath denial of service (CVE-2026-133744).

    Which Symfony Versions Are Affected?

    Every maintained branch below the November 25 releases has at least one of these flaws, and unmaintained branches get no fix.

    Symfony branchFixed inFixes in releaseSupport status (symfony.com)
    8.1.x8.1.1223Maintained until January 2027
    8.0.xNo fix–End of life since July 2026, upgrade to 8.1
    7.4.x (LTS)7.4.2423Security fixes until November 2029
    7.0.x to 7.3.xNo fix–Unmaintained, upgrade to 7.4
    6.4.x (LTS)6.4.5116Security fixes until November 2027
    5.4.x (LTS)5.4.5715Security fixes only, until February 2029

    Exact ranges differ per CVE: for example, CVE-2026-134791 affects ExpressionLanguage only from 7.2.0, and CVE-2026-133760 only from 5.4.54, 6.4.48, 7.4.21 and 8.1.9.

    What Is the Security Impact?

    The realistic impact depends on which components your app uses and how it receives requests.

    • Denial of service: apps that lint, parse or evaluate untrusted expressions, including the ExpressionSyntax validator, or decode untrusted CSV with the Serializer, can be stalled or crashed with small inputs.
    • Credential and data leaks: apps that call other services with HttpClient can leak credentials to other origins or route traffic through an attacker-chosen proxy. CVE-2026-134792 and CVE-2026-133762 only affect HTTP workers under the CLI SAPI, such as the RoadRunner runner of php-runtime. Symfony says FrankenPHP’s worker mode sets APP_RUNTIME_MODE and is not affected by CVE-2026-133762.
    • Script injection: CVE-2026-133743 can make pages load assets from another host when a TLS terminator, proxy or cache on the same host forwards requests from 127.0.0.1. Symfony says apps served directly by php-fpm or mod_php are not affected.

    How Do I Check Whether My Project Is Affected?

    Check the installed Symfony packages first, then let Composer compare them with the advisory database.

    composer show "symfony/*"
    composer audit
    composer why symfony/http-client

    Packages below 8.1.12, 7.4.24, 6.4.51 or 5.4.57 need the update. composer audit checks the Packagist advisory database, which already lists these CVEs. composer why shows which package pulled a component in.

    Is my Drupal or Laravel site affected?

    Possibly, because both ship Symfony components, but whether a specific CVE applies depends on the code paths used. Drupal’s drupal/core-recommended 11.4.14 and 11.3.23 pin components with ~v7.4.23, and 10.6.23 with ~v6.4.50, so the patch releases fit those constraints. Laravel 13.44.1 requires components such as http-foundation, http-kernel, routing and mailer at ^7.4.0 || ^8.0.0. Run composer audit in each project.

    How Do I Apply the Symfony Security Update?

    Update the Symfony packages within your current branch, test, deploy and restart every long-running process.

    Symfony security update steps: check versions, composer update, run tests, deploy, restart workers, re-run composer audit
    Symfony security update workflow: patch within your branch, then restart workers so the fixed code is loaded.
    1. Back up and use a branch or staging copy.
    2. Update the packages. Symfony’s upgrade guide uses composer update "symfony/*"; add --with-all-dependencies if Composer reports a dependency conflict.
    3. Run your tests, especially login, redirects, HttpClient calls and serializer endpoints.
    4. Deploy and restart workers. RoadRunner, FrankenPHP worker mode, Swoole and Messenger consumers keep old code in memory until they restart.
    5. Re-run composer audit and commit the updated composer.lock.
    6. Plan branch upgrades. On 8.0 or 7.0-7.3, move to 8.1 or 7.4. Symfony 6.4 bug-fix support ends in November 2026.

    Additional Security Recommendations

    • Configure trusted proxies explicitly using Symfony’s guide for load balancers and reverse proxies.
    • Use a Content Security Policy so injected script URLs from another host are blocked. See our HTTP security headers guide.
    • Keep PHP patched too. Our PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 security update guide covers the runtime.
    • Subscribe to Symfony’s security notifications on its releases page.

    FAQ

    Is the Symfony security update urgent?

    It is important, but there is no sign of exploitation. Six fixes are rated high and none is in CISA KEV as of November 27, 2026. Update this week and sooner if you parse untrusted expressions or CSV, or run CLI-SAPI HTTP workers.

    Which Symfony version should I install?

    Install the newest release of your branch: 8.1.12, 7.4.24, 6.4.51 or 5.4.57. Symfony 8.0 and 7.0-7.3 get no fix.

    Do I need to update symfony/symfony or each component?

    Update whatever your composer.json requires. The advisories list both the individual packages and the symfony/symfony package with the same fixed versions.

    Do these CVEs have NVD scores?

    Not yet. As of November 27, 2026, NVD lists the records as “Received”. The CVSS v4.0 scores come from Symfony as CNA. Our guide What Is a CVE? explains how CNAs and NVD differ.

    Does the Drupal CVE-2026-136716 update include these Symfony fixes?

    No. Drupal’s November 25 release notes say the same-day Symfony security update is not included, so update Symfony packages separately. See our Drupal CVE-2026-136716 guide.

    Conclusion

    The November 2026 Symfony security update fixes 23 CVEs across HttpClient, ExpressionLanguage, Serializer, HttpKernel and Security. Update to 8.1.12, 7.4.24, 6.4.51 or 5.4.57, restart your workers and add composer audit to your pipeline.

    References

    Related Articles

    Last Verified: November 27, 2026. Prepared by SafeWebAcademy from the official Symfony release announcements and security advisories, the GitHub advisory records, CVE.org and NVD, Packagist metadata and the CISA KEV catalog linked above. This is not an official Symfony publication. Security details can change, so check the linked advisories for updates.

  • Content Security Policy (CSP): Directives, Examples, Report-Only Rollout and Nginx Setup

    Content Security Policy (CSP): Directives, Examples, Report-Only Rollout and Nginx Setup

    Content Security Policy guide graphic: strict nonce directive, frame-ancestors, and Report-Only labels beside a green shield

    Introduction

    A Content Security Policy (CSP) is an HTTP response header telling the browser which scripts, styles, frames, fonts, and network connections a page is allowed to load or run. When an app accidentally renders attacker-controlled input, a strong Content Security Policy blocks injected <script> tags, inline event handlers, and unauthorized framing before they execute. As of November 25, 2026, OWASP and MDN treat CSP as a core browser defense against cross-site scripting (XSS) and clickjacking—when built as a strict policy rather than a broad domain allowlist.

    Our HTTP security headers guide gives a brief overview across eight headers. This article focuses purely on Content Security Policy: directive fallback behavior, why host allowlists frequently fail security checks, strict nonce and hash CSP examples, configuring CSP in nginx and Apache safely, rolling out Content-Security-Policy-Report-Only, and testing policies before enforcing them.

    Key Facts: Content Security Policy at a Glance

    • What it mitigates: Reduces XSS impact (blocking injected inline and remote scripts), clickjacking (frame-ancestors), form hijacking (form-action), and mixed content (upgrade-insecure-requests).
    • Defense in depth, not a patch: W3C CSP Level 3 and OWASP stress that CSP never replaces output encoding, input validation, or software patching.
    • Recommended pattern: A strict nonce-based or hash-based CSP ('nonce-{RANDOM}' 'strict-dynamic') rather than long host allowlists, which are often bypassable via JSONP or user-uploaded files on CDNs.
    • Safe rollout header: Always start with Content-Security-Policy-Report-Only and a reporting endpoint (report-to with Reporting-Endpoints, optionally paired with report-uri).
    • Weaknesses to avoid: 'unsafe-inline', 'unsafe-eval', wildcard *, and broad https: schemes in script-src leave most XSS paths open.
    • Testing tools: Browser DevTools, Google CSP Evaluator, curl -I, and the MDN HTTP Observatory.

    How Content Security Policy Stops Attacks

    Cross-site scripting occurs when untrusted data reaches the browser’s HTML or DOM parser and runs as JavaScript. Without a Content Security Policy, the browser treats your application bundle and an injected <script> tag or onerror="..." attribute identically—both access DOM content, localStorage, and authenticated APIs on that origin.

    Sending Content-Security-Policy changes that trust model. The browser blocks inline scripts, eval()-style execution, unauthorized form targets, legacy embeds (object-src 'none'), and disallowed framing (frame-ancestors). Even if a template bug leaks unescaped input, the injected payload cannot easily execute.

    CSP still has boundaries: it does not fix SQL injection or broken access control on the server, and it does not protect pure JSON API responses. As our OWASP Top 10 guide explains, input validation and output encoding come first; CSP is your second layer.

    Core Content Security Policy Directives Explained

    A Content Security Policy consists of semicolon-separated directives. Knowing how fallbacks work prevents policies that are silently permissive or unexpectedly break features.

    DirectiveCategoryRecommended ValueWhat It Controls
    default-srcFetch'self' or 'none'Fallback for any fetch directive not explicitly listed
    script-srcFetch'nonce-{RANDOM}' 'strict-dynamic'Valid sources for JavaScript and WebAssembly
    script-src-elemFetchInherits script-src<script> elements specifically (CSP Level 3)
    script-src-attrFetch'none' (via script-src)Inline event handlers like onclick=
    style-srcFetch'self' (or nonce/hash)Stylesheets and inline <style> blocks
    img-srcFetch'self'Images and favicons (add data: only if required)
    connect-srcFetch'self' plus API originsfetch(), XMLHttpRequest, WebSocket, EventSource
    font-srcFetch'self'Web fonts loaded via @font-face
    object-srcFetch'none'<object> and <embed> legacy plugins
    base-uriDocument'none' or 'self'Allowed <base> URLs (blocks relative-URL hijacking)
    form-actionNavigation'self'Target URLs for HTML <form> submissions
    frame-ancestorsNavigation'none' or 'self'Which parent pages may embed your site in a frame
    upgrade-insecure-requestsDocument(no value)Upgrades http:// subresource URLs to https://
    report-toReportingcsp-endpointNames the endpoint group from Reporting-Endpoints

    Keep two W3C CSP Level 3 rules in mind:

    1. base-uri, form-action, and frame-ancestors do NOT fall back to default-src. Setting default-src 'none' alone does not block clickjacking or form hijacking—declare them explicitly.
    2. Specific fetch directives override broader ones. For <script> elements, the browser checks script-src-elem, then script-src, then default-src. For inline attributes, it checks script-src-attr, then script-src, then default-src.
    Content security policy script directive fallback chain and four-step safe production rollout flow
    CSP Level 3 evaluates specific directives before falling back to script-src and default-src. Roll out new policies in four stages.

    Strict CSP Examples vs. Allowlist Policies

    Teams often start by listing trusted domains: script-src 'self' https://cdn.example.com. OWASP and Google’s CSP research warn that host allowlists are brittle and frequently bypassed if a whitelisted CDN hosts user uploads, old AngularJS builds, or JSONP endpoints.

    Strict Nonce-Based CSP (Dynamic and SSR Apps)

    If your server or SSR framework renders HTML per request, generate a fresh random Base64 nonce (at least 128 bits) on every response and attach it only to trusted <script> tags:

    Content-Security-Policy: default-src 'self'; script-src 'nonce-rAnd0mPerReQue5tV4luE' 'strict-dynamic' https: 'unsafe-inline'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests;

    Modern browsers that recognize nonces ignore 'unsafe-inline', and browsers supporting 'strict-dynamic' ignore https: in script-src, trusting scripts dynamically loaded by an already-nonced script instead. Never reuse nonces across responses, and never auto-stamp nonces onto all <script> tags in middleware (which would also bless injected attacker scripts).

    Hash-Based Strict CSP (Static HTML Sites)

    Static sites hosted on CDNs or object storage cannot mint per-request nonces. Instead, keep JavaScript in external 'self' files or authorize exact inline snippets by SHA-256 hash:

    Content-Security-Policy: default-src 'none'; script-src 'self' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='; style-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self';

    Deliver CSP via HTTP headers rather than <meta http-equiv="Content-Security-Policy">, because <meta> delivery ignores frame-ancestors, reporting directives, and Report-Only mode.

    Rolling Out Report-Only Without Breaking Production

    Enforcing a new Content Security Policy immediately on an active site risks breaking analytics, payment widgets, or inline scripts. Deploy Content-Security-Policy-Report-Only first so browsers report violations without blocking execution.

    Pair the modern Reporting-Endpoints header and report-to directive with report-uri if you also want legacy client coverage:

    Reporting-Endpoints: csp-endpoint="https://example.com/csp-reports"
    Content-Security-Policy-Report-Only: default-src 'self'; script-src 'nonce-rAnd0mPerReQue5tV4luE' 'strict-dynamic'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; report-uri /csp-reports-legacy; report-to csp-endpoint

    Browsers send JSON POST reports (Content-Type: application/reports+json) showing blockedURL, effectiveDirective, documentURL, sourceFile, and lineNumber. Monitor Report-Only across login, checkout, and admin flows for one to two weeks before switching to Content-Security-Policy. Filter out noise from browser extensions (chrome-extension://, moz-extension://) when triaging logs.

    Configuring Content Security Policy in Nginx and Apache

    Set your CSP in one layer—either the application (for per-request nonces) or the web server (for static or hash-based sites). Sending two Content-Security-Policy headers forces browsers to enforce the intersection of both, causing unexpected blocks.

    Nginx Content Security Policy Example

    server {
        listen 443 ssl;
        server_name example.com;
    
        add_header Reporting-Endpoints 'csp-endpoint="https://example.com/csp-reports"' always;
        add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'; report-to csp-endpoint;" always;
    }

    Watch two nginx rules from ngx_http_headers_module:

    • Include always, or nginx omits headers on 4xx and 5xx error pages.
    • Mind add_header inheritance. If any location block defines its own add_header (such as Cache-Control), nginx drops all server-level add_header directives for that location unless repeated or merged with add_header_inherit (available since nginx 1.29.3). Keep nginx patched via our nginx security update guide.

    Apache HTTP Server Example

    <IfModule mod_headers.c>
        Header always set Reporting-Endpoints "csp-endpoint=\"https://example.com/csp-reports\""
        Header always set Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'; report-to csp-endpoint;"
    </IfModule>

    Apache’s always table applies headers to error pages and internal redirects too. Pair this with patches from our Apache HTTP Server update guide.

    How to Test and Audit Your CSP

    Verify every deployment with three checks:

    1. Check live headers with curl:
    curl -sI https://example.com/ | grep -iE "content-security-policy|reporting-endpoints"

    Test the homepage, login route, content pages, and a 404 path to catch missing always flags or nginx location overrides.

    1. Audit with Google CSP Evaluator: Paste your header into csp-evaluator.withgoogle.com to catch weak directives ('unsafe-inline', missing object-src 'none', missing base-uri, or risky CDN domains).
    2. Verify in DevTools and MDN HTTP Observatory: Walk key user flows with DevTools Console open, then scan the public domain with the MDN HTTP Observatory.

    Recommendations for Teams Deploying CSP

    • Refactor inline code early: Move inline <script> blocks into external files or nonced tags, and replace onclick="..." attributes with addEventListener().
    • Pair CSP with a WAF: A web application firewall blocks malicious requests at the edge while CSP constrains script execution in the browser.
    • Treat CSP generators as a starting point: Automated CSP generator tools often insert broad https: or 'unsafe-inline' rules—always verify output in CSP Evaluator and test via Report-Only first.
    • Harden the underlying host: Keep your OS and services updated using our Ubuntu server security guide.

    FAQ

    What is a good starter Content Security Policy for a new site?

    Begin in Content-Security-Policy-Report-Only with default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self';, then add only the exact third-party origins or nonces your site requires.

    Should I use CSP frame-ancestors or X-Frame-Options?

    Use CSP frame-ancestors, which OWASP says obsoletes X-Frame-Options and supports multiple origins. Keeping X-Frame-Options: DENY alongside it for older clients is harmless.

    Why does CSP Evaluator warn about my domain allowlist?

    Public CDNs and cloud storage domains often host JSONP endpoints, user uploads, or legacy libraries that attackers can load to bypass a host-based allowlist. Nonces or hashes with 'strict-dynamic' avoid that weakness.

    Can nginx generate CSP nonces safely on its own?

    Avoid sub_filter nonce hacks inside nginx: stamping a nonce onto every <script> tag in HTML would also bless an attacker’s injected script. Generate per-request nonces inside your backend or SSR templates instead.

    What is the difference between report-uri and report-to?

    report-to is the CSP Level 3 directive referencing an endpoint group in Reporting-Endpoints. report-uri is deprecated in CSP Level 3, though MDN notes teams still pair both while older browsers transition.

    Conclusion

    A strict Content Security Policy sharply reduces XSS and clickjacking impact without slowing down your application. Audit inline scripts, deploy Content-Security-Policy-Report-Only with violation reporting first, avoid add_header inheritance traps in nginx, and verify every policy with curl and Google CSP Evaluator before enforcing it.

    References

    All references below were verified on November 25, 2026.

    Related Articles

    Last Verified: November 25, 2026. Prepared by SafeWebAcademy from W3C CSP Level 3, MDN, OWASP, nginx, and Apache documentation linked above. Browser support and recommendations change; re-test policies in Report-Only before production updates.