Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Ruby

CVE-2026-126070 — rails

Medium · CVSS 6.1EPSS 0.3% First seen November 10, 2026

One of 9 rails vulnerabilities published together by NVD: our article covers all of them.

RubyWebVulnerabilities

Research article

Ruby on Rails Action View: striptags output can enable XSS inside HTML attributes (CVE-2026-126070)

CVECVE-2026-126070
Vendor and productrails
PublishedNovember 12, 2026 07:20 UTC
Research cut-offNovember 12, 2026 07:12 UTC
Sources reviewed2: NVD record (last modified 2026-11-10); CISA KEV catalog

Executive summary

CVE-2026-126070 is a cross-site scripting (XSS) weakness in the striptags helper of Action View, the view-rendering component of Ruby on Rails [1]. The helper returns sanitized text marked as HTML-safe, but its sanitizer does not encode double and single quotes, so ERB output will not escape them [1]. NVD lists the record as Received, not yet analyzed, and the only score on it is a CVSS 3.1 base score of 6.1 (MEDIUM) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, assigned by GitHub as a secondary scorer [1]. The record lists rails versions before 8.0.5.2 and from 8.1 up to but not including 8.1.4.1 as affected, with fixes in 8.0.5.2 and 8.1.4.1 [1]. Exploitation requires an application that passes untrusted input through striptags and places the result inside a quoted HTML attribute, and it requires a user to interact with a crafted page [1]. The CISA Known Exploited Vulnerabilities catalog did not list this CVE as of 2026-11-12, but that is not evidence that exploitation has not occurred [2]. The most important immediate action is to find every striptags call whose output reaches an attribute and to stop using it there until the application is upgraded to 8.0.5.2 or 8.1.4.1 [1].

Key points

  • CVE-2026-126070 is an XSS flaw in Rails Action View's striptags helper: sanitized output is marked HTML-safe while quote characters remain unencoded [1].
  • The CNA-published affected range is before 8.0.5.2 and 8.1 up to but excluding 8.1.4.1, with fixes in 8.0.5.2 and 8.1.4.1 [1].
  • The CVSS 3.1 score is 6.1 MEDIUM (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), scored by GitHub as secondary scorer [1].
  • Exposure requires untrusted input passed through striptags and rendered inside a quoted attribute; element content is not listed as affected [1].
  • CISA KEV did not list the CVE as of 2026-11-12; exploitation status is otherwise Not established by the reviewed sources [2].

Vulnerability identification

FieldValueSource
CVE IDCVE-2026-126070[1]
Vendor (CNA-published)Rails (Ruby on Rails project)[1]
ProductAction View, the view-rendering library shipped with Rails[1]
ComponentThe striptags helper and the sanitizer it calls[1]
Affected platformRuby web applications that use Action View[1]
Published2026-11-10T21:19:25[1]
Last modified2026-11-10T21:19:25[1]
Record statusReceived (NVD has recorded it but the reviewed pack shows no completed NVD analysis)[1]
CWECWE-79, Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)[1]
CVSS 3.1 base score6.1, MEDIUM[1]
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N[1]
Scoring version and scorerCVSS 3.1, scored by security-advisories@github.com (listed as Secondary)[1]
KEV statusNot listed as of 2026-11-12[2]
Related advisoryGitHub Security Advisory GHSA-rq8q-p985-fjq7 (listed as a reference; its contents are not in the pack)[1]
Related commits568b19cb860322885593e308a7f27aceb779e9d7 and c3772a10f405f9644125cbb484adfd2aa7a25a59 (listed as references; contents not in the pack)[1]
Fix releasesv8.0.5.2 and v8.1.4.1[1]

The CWE-79 classification means the flaw is a failure to neutralize user-controlled data before it is placed into a web page. In this case, the helper's output is treated as already safe, so the template engine does not apply its usual escaping [1]. The CWE-79 mapping is the only weakness classification in the reviewed record; no second CWE is given [1].

Scoring discrepancy: the pack contains one score, from GitHub acting as secondary scorer. No NVD-assigned score is present in the reviewed record, and no CVSS 4.0 score or EPSS score is in the pack [1]. Neither the vendor nor NVD scores are available to compare against.

Technical background

Action View is the part of Ruby on Rails that turns templates into HTML. Templates are commonly written in ERB (Embedded Ruby), where a tag such as an output tag inserts the value of a Ruby expression into the page. ERB escapes such values by default, which turns characters like the angle brackets and quotes into HTML entities so that the browser displays them as text rather than parsing them as markup [1]. This default protection is the main defense against XSS in Rails views.

Rails also has a mechanism for marking a string as already safe for HTML output. A string carrying that mark is inserted without escaping. The developer is then responsible for making sure the content really is safe. The record describes this marking as 'htmlsafe' [1].

The striptags helper is intended to remove HTML tags from a string and return plain text. The record says that striptags returns its sanitized result already marked as safe [1]. This means the tag removal and the safety marking are separate steps, and the marking tells the template engine to skip its escaping. The trust boundary is therefore at the point where striptags output changes from 'sanitized text' to 'trusted HTML'. Any character that survives the sanitizer unencoded and lands in an attribute value can change the markup.

HTML attributes are name-value pairs inside a start tag, such as an attribute named title. A value is normally enclosed in double or single quotes. A quote character inside the value would end the attribute early unless it is encoded [S1, analyst assessment for the general HTML rule].

Vulnerability description

The security property affected is output integrity in the browser: the page should render untrusted data as data, not as markup or script. The flaw is in the Action View striptags path, where the sanitizer's encoding is not strong enough for attribute contexts [1].

An attacker who can supply input that the application passes through striptags could, in principle, cause the browser to receive extra attributes or script-bearing markup inside the rendered page. The record describes this as possibly leading to XSS [1]. XSS in a victim's browser can allow actions in the security context of the affected web application, such as reading page content visible to that user, but the reviewed sources do not describe any specific data or action that was demonstrated [1].

Conditions required for the flaw to matter, per the record:

  1. The application uses striptags on untrusted input.
  2. The result is rendered inside an HTML attribute value that is delimited by quotes, for example a title attribute or an attribute of a tag [1].
  3. The application runs a vulnerable Action View version [1].

What the vulnerability does not establish, based on the record: output rendered as normal element content is not listed as affected [1]. The record does not say that striptags is vulnerable in every context, nor that it leads to code execution on the server. The CVSS vector shows a scope change (S:C) and low confidentiality and integrity impact with no availability impact, which is consistent with a client-side issue and not with server compromise [1].

Root cause analysis

What the sources confirm: the sanitizer used by striptags encodes ampersand characters and some other characters, but the record states that double and single quotes are left unencoded. Because the sanitized output is marked as safe, the template engine inserts it without further escaping [1]. This is confirmed by the record description.

The record's list of encoded characters appears to be incomplete in the pack as received: the text reads 'encodes only &, , leaving...', with a gap where at least one character name would be [1]. The exact set of characters the sanitizer encodes is therefore Not established by the reviewed sources.

Analyst assessment: the root cause is a mismatch between two contracts. The sanitizer's contract is only that it removes tags and encodes some characters. The marking step assumes the result is fully safe for any HTML context, including attribute values. Those two assumptions do not match, because attribute safety requires encoding of quote characters that the sanitizer does not handle [Analyst assessment, based on S1].

Why existing controls failed to prevent it: the default ERB escaping was bypassed by the safe marking, which is an intended feature. The safety marking was applied to output that was only sanitized for element content, not for attribute content. No source in the pack discloses the commit diff or the specific code change, so the precise implementation error is Not established by the reviewed sources [1].

Technical mechanics

The following numbered flow is an analyst reconstruction of the documented behavior, not a verified trace of the code.

  1. The application receives untrusted input, such as a user-supplied string, from a request or stored record [1].
  2. The view calls striptags on that input [1].
  3. striptags removes HTML tags from the input, then runs a sanitizer that encodes only a limited set of characters, including ampersand, and leaves double and single quotes as they are [1].
  4. striptags marks the sanitized result as HTML-safe and returns it [1].
  5. The template places the result inside a quoted attribute value, for example a title attribute [1].
  6. ERB sees the HTML-safe mark and does not escape the value again [1].
  7. If the input contains a quote character, the browser reads it as the end of the attribute value, and any text after it can be parsed as new attributes or markup [S1, analyst assessment on HTML parsing].
  8. The control that should have prevented this is attribute-context encoding, which would encode quote characters before the value is marked safe. Element-content encoding is not sufficient for attributes [S1, analyst assessment].

The pack does not describe memory handling, serialization, or authentication steps. The mechanism is a rendering and encoding failure only.

Attack surface and exploitation prerequisites

PrerequisiteAssessmentSource
Network accessNetwork (AV:N) per the vector, meaning the attacker needs only to reach the web application[1]
Adjacent network or local or physical accessNot required per the vector (AV:N)[1]
AuthenticationNone required per the vector (PR:N); whether a specific page requires login depends on the application, which is Not established by the reviewed sources[1]
User interactionRequired per the vector (UI:R); the record does not describe the interaction, so a victim must load a page or perform an action that triggers the rendering[1]
Required configurationThe application must call striptags on untrusted input and render the result inside a quoted attribute value. The record gives the attribute examples but not a complete list of helpers or templates[1]
Attacker positionAny position that can supply the input, such as a user-facing form field or stored content. Exact reachable interfaces are application-specific and Not established by the reviewed sources[S1, analyst assessment]
LimitationsOutput in element content is not listed as affected. The record does not state whether other Rails helpers share the same sanitizer[1]

The CVSS vector is a useful summary, but it does not prove that a given application is exploitable. The vector only reflects the general conditions the scorer assumed [1].

Exploitation scenarios and attack lifecycle

Illustrative scenario, not confirmed by any source: an online service shows a user's display name in a title attribute on a profile card, using striptags to remove markup from the name. An attacker sets a name containing quote characters and attribute syntax. When another user views the profile, the browser parses the injected attribute and may run script in the victim's session, depending on the content allowed by the page [Illustrative, based on S1].

Lifecycle stages and defensive opportunities for this scenario:

  • Initial access: the attacker needs only the ability to write the affected field. Defensive opportunity: review which fields pass through striptags and restrict who can write them.
  • Delivery: the victim loads the affected page. Defensive opportunity: content security policy restrictions can limit script execution, though this is a layer, not a fix [Analyst assessment].
  • Execution: the injected markup is parsed by the browser in the application's origin. Defensive opportunity: attribute-context encoding in the application.
  • Post-exploitation: depends on the victim's session and page content. Not established by the reviewed sources.
  • Detection: no indicators of compromise or log signatures are given in the pack. Defensive opportunity: review application logs and stored content for attribute-breaking characters in fields that use striptags.

No source documents an actual attack chain for CVE-2026-126070.

Impact analysis

Security propertyTechnically demonstrated by the sourcesPlausible downstream consequences (not demonstrated)
ConfidentialityLow impact per the CVSS vector (C:L) [1]Session data or page content visible to a victim could be read by script, depending on the application
IntegrityLow impact per the CVSS vector (I:L) [1]Page content could be altered for a victim in their browser
AvailabilityNone per the CVSS vector (A:N) [1]Not established by the reviewed sources
AuthenticationNot established by the reviewed sourcesSession abuse is possible in principle if script runs in an authenticated session
Authorization and privilege boundariesScope changed per the vector (S:C) [1]Actions performed as the victim, depending on the application
Data and privacyNot established by the reviewed sourcesDepends on what the victim's pages display
Business operationsNot established by the reviewed sourcesNot established by the reviewed sources
Regulatory or contractualNot established by the reviewed sourcesDepends on the data processed by affected applications

The impact is a client-side issue in the affected page. The sources do not describe server compromise.

Affected products and versions

VendorProduct or componentAffected versionsFixed versionPlatformSource and qualification
RailsAction View (striptags)Before 8.0.5.28.0.5.2Ruby web applications[1] (CNA-published range)
RailsAction View (striptags)8.1 or later, but before 8.1.4.18.1.4.1Ruby web applications[1] (CNA-published range)

Notes on the range:

  • The record's stated range has no lower bound for the 8.0 line, so the reviewed sources do not establish how far back the flaw extends. The phrase 'prior to 8.1.4.1 and 8.0.5.2' in the description is the only other statement [1].
  • Whether older branches such as 7.x are affected is Not established by the reviewed sources.
  • The NVD configuration data (CPE) is not in the pack, so the full set of affected package versions cannot be cross-checked against NVD's configuration [1].
  • Known exclusions: content rendered as element content is not listed as affected [1].
  • Vendor-authored advisory text (GHSA-rq8q-p985-fjq7) and commits are referenced but their content is not in the pack. The fixed versions above come from the CVE record and its references [1].

Exploitation and threat intelligence status

  • Confirmed exploitation in the wild: Not established by the reviewed sources.
  • CISA KEV: not listed as of 2026-11-12 [2]. The catalog entry is a status snapshot. The absence of a listing is not evidence that the flaw has not been exploited [2].
  • Public proof of concept: Not established by the reviewed sources. The record references the vendor advisory and commits, but no exploit repository is in the pack [1].
  • Threat actors, campaigns, sectors: Not established by the reviewed sources.
  • EPSS score: not in the pack.
  • Theoretical exploitability: the record describes a plausible XSS path under the stated conditions [1].

No source distinguishes confirmed exploitation from theoretical exploitability for this CVE.

Indicators of compromise

No indicators of compromise are given in the reviewed sources. The pack has no file hashes, domains, IP addresses, URLs for exploit traffic, log events, or payload patterns [1, 2]. Indicators must not be invented. Organizations can look for stored content in applications that contains attribute-breaking characters in fields that use striptags, but the pack does not define a validated signature, so any such search is an analyst-defined review and not a vendor-sourced indicator.

Detection and exposure assessment

Asset inventory and version checks:

  1. Identify every Ruby application that depends on the rails or actionview gems. Standard read-only check in a project directory: grep -E '^ (actionview|rails) ' Gemfile.lock. Expected output lists the locked versions. Prerequisite: access to the repository or deployed bundle. Limitation: the lock file can differ from the deployed version, so confirm against the running environment [analyst assessment, standard Bundler tooling].
  2. Compare each result to the affected ranges in the Affected products section. Anything before 8.0.5.2, or from 8.1 up to but not including 8.1.4.1, is in the CNA-published range [1].

Code and template review:

  1. Search templates and helpers for calls to striptags, for example with a read-only grep for 'striptags' across the app/views and app/helpers directories. Review each result to see whether the output is placed inside an attribute value [analyst assessment].
  2. Record each finding with file, line, and whether the output is in attribute or element context.

Runtime and telemetry review:

  1. Review stored user content for characters such as quotation marks in fields that feed striptags output into attributes. This is a data review, not a detection signature [analyst assessment].

A version check is not proof of exploitability. A fixed version is not proof of safety unless the striptags contexts were also reviewed.

Immediate mitigation

  1. Stop using striptags output inside attribute values. Replace the call in each attribute context with ERB's standard escaping of the value, so that quote characters are encoded. Protects against: the attribute-breaking path described in [1]. Limitation: it changes display if the page relied on the marked output. Side effect: visible text may change for inputs containing quotes. Verify: re-render a test record containing quote characters and confirm the attribute value remains intact in the page source [analyst assessment, follows from the documented safety-marking behavior in [1]].
  2. Restrict who can write fields that reach striptags in attribute contexts, for example by limiting editing to trusted roles. Protects against: attacker-supplied input. Limitation: does not help against other users with write access. Verify: confirm access control changes in the application's authorization configuration [analyst assessment].
  3. Apply a restrictive content security policy that disallows inline script for affected pages, if the application can support it. Protects against: script execution from injected markup. Limitation: a layer, not a fix; it can break existing inline code. Verify: check response headers with a browser developer tool or a read-only header check [analyst assessment, standard web defense practice].
  4. Increase monitoring of application logs for unusual request parameters in fields that feed affected views. Limitation: no signature is in the pack. Verify: confirm the log source is collected and searchable [analyst assessment].

Web application firewall rules are not supported by any source in the pack and are not recommended as a replacement for the template change.

Permanent remediation

Vendor-confirmed fixes, per the CVE record:

  • Upgrade the 8.0 line to 8.0.5.2 or later [1].
  • Upgrade the 8.1 line to 8.1.4.1 or later [1].

The release tags v8.0.5.2 and v8.1.4.1 are the cited fix releases [1]. The reviewed sources do not give upgrade prerequisites, dependency changes, or migration steps. Those must be checked against the vendor release notes, which are not in the pack.

Practical steps:

  1. Update the rails or actionview entry in Gemfile to the fixed version, run bundle update for that gem only, and commit the resulting Gemfile.lock. Verify with the version check in the Detection section [analyst assessment, standard Bundler workflow].
  2. Review the application's test suite and run it. Backup the database and deployment artifact before upgrading. Plan a rollback to the previous release artifact in case of regression [analyst assessment].
  3. After upgrading, confirm whether a server restart is needed to load the new gem. The reviewed sources do not state this, so Not established by the reviewed sources.

Recommended hardening, not vendor-confirmed: change striptags call sites in attribute contexts to encode values explicitly, as described in Immediate mitigation. This is defense in depth and should be kept even after upgrading.

Workarounds and compensating controls

The only documented fix is the version upgrade [1]. Replacing striptags calls in attribute contexts with standard escaping avoids the marked-safe path, but this is an application code change, and it is a workaround that must be reviewed. Its residual risk is that new call sites may be added later, and that other helpers may share the same sanitizer. The record does not say whether they do [1].

Content security policy and input restrictions reduce the impact of injected script but do not remove the flaw. A workaround is not equivalent to a permanent fix, because the vulnerable version remains installed.

Validation and verification

  1. Confirm the installed Action View and Rails versions in each environment are 8.0.5.2 or later on the 8.0 line, or 8.1.4.1 or later on the 8.1 line [1]. Record the command output and date.
  2. Confirm the Gemfile.lock and deployed bundle match the fixed version.
  3. Re-check every striptags call site. Confirm that no output reaches an attribute without encoding, using a test input that contains quote characters in a safe test environment [analyst assessment].
  4. Re-run the application's test suite and add a regression test that renders a quote-containing value inside an attribute and checks that the attribute remains intact [analyst assessment].
  5. Confirm the content security policy and monitoring controls remain in place, if they were added as compensating controls.
  6. Record evidence, owner, date, and any exceptions. Do not treat a single check as proof that the system is secure.

Validation must be done only on systems the organization is authorized to test.

Incident response

If exploitation is suspected, no source in the pack describes an incident pattern. The following steps follow the organization's incident response plan.

  1. Triage and scope: identify affected pages that render striptags output in attributes, and the users who loaded them during the exposure window [analyst assessment].
  2. Containment: apply the template change or disable the affected page, following the change control process.
  3. Evidence preservation: preserve application logs, web server logs, and stored content before cleanup. Do not overwrite or delete logs.
  4. Investigation: review stored content for injected attribute syntax and review session activity for anomalies. The pack provides no signatures.
  5. Credentials: rotate session tokens or credentials only if evidence shows script execution in a user session. The pack gives no evidence of this.
  6. Eradication and patching: upgrade to a fixed version and remove injected content.
  7. Recovery and monitoring: confirm the fix, then monitor affected pages.
  8. Notification: follow applicable legal and contractual obligations. Not established by the reviewed sources.
  9. Lessons learned: record the call sites found and add a code review rule for striptags in attribute contexts.

Security hardening and prevention

Specific to this flaw:

  • Treat striptags output as text unless you have confirmed the context is element content. Use attribute-context encoding for attribute values [analyst assessment, based on S1].
  • Add a code review check or linter rule that flags striptags results used in attribute contexts [analyst assessment].
  • Add regression tests for quote characters in attribute values [analyst assessment].

Broader defense in depth (analyst recommendations, not drawn from the pack):

  • Use a restrictive content security policy and review it regularly.
  • Keep dependency update processes current for the Rails branch in use.
  • Monitor dependency advisories for Action View.

Risk assessment

Technical severity: the record's CVSS 3.1 base score is 6.1, MEDIUM, from GitHub as secondary scorer [1]. The score reflects a network-reachable, user-interaction client-side issue with scope change and low confidentiality and integrity impact [1].

Exposure and asset criticality: depends on whether the organization runs affected versions and whether any affected page renders striptags output in an attribute. Not established by the reviewed sources.

Attacker opportunity: the attacker needs to supply input that reaches the affected helper and a victim to load the page [1].

Evidence of exploitation: none in the reviewed sources. KEV does not list the CVE as of 2026-11-12 [2].

Business impact: depends on the data and sessions of affected applications. Not established by the reviewed sources.

Existing controls: default ERB escaping protects element content and most other output, but it is bypassed by the safe-marking path in the affected code [1].

Residual risk: remains until the affected version is upgraded or the call sites are corrected.

Recommended priority (analyst assessment; this is not the CVSS score): high priority for internet-facing applications that render user-supplied striptags output in attributes, and standard priority for internal applications or applications that do not use striptags in attributes. The reasoning is that the flaw is reachable over the network with user interaction and the sources show no exploitation evidence, while the fixed versions are clearly identified [1, 2].

Conclusion

CVE-2026-126070 is an XSS weakness in the Action View striptags helper of Rails, where sanitized output is marked as safe but quote characters are not encoded, so attribute values can be broken [1]. Teams responsible for Rails applications that pass untrusted input through striptags into HTML attributes should act first. The immediate step is to stop using striptags output in attributes and apply standard escaping. The permanent fix is to upgrade to 8.0.5.2 or 8.1.4.1 [1]. The issue can be closed only with evidence of the installed versions, a review of every striptags call site, a regression test for quote characters, and a record of the exception process for any unpatched system. KEV did not list the CVE as of 2026-11-12, but this is not evidence of absence of exploitation [2].

Remediation checklist

  1. Search every Ruby application's views and helpers for striptags calls and record whether each output is placed inside an HTML attribute value [S1, analyst assessment].
  2. For each attribute-context call site, replace striptags output with standard ERB escaping so quote characters are encoded, then confirm in the rendered page source with a test value that contains quotes [S1, analyst assessment].
  3. Restrict write access to fields that feed striptags output into attributes to trusted roles until the upgrade is complete [analyst assessment].
  4. Inventory installed Action View versions with a read-only check such as grep -E '^ (actionview|rails) ' Gemfile.lock and compare them with the affected ranges [S1, analyst assessment].
  5. Upgrade the 8.0 line to 8.0.5.2 or later, and the 8.1 line to 8.1.4.1 or later [1].
  6. Back up the deployment artifact and database before the upgrade, and keep the previous artifact for rollback [analyst assessment].
  7. After upgrading, rerun the application test suite and add a regression test for a quote-containing value rendered in an attribute [analyst assessment].
  8. Confirm that the deployed bundle, not only the lock file, runs the fixed version, and record the evidence, owner and date [analyst assessment].
  9. Review application logs and stored content for attribute-breaking input in affected fields, and preserve evidence before any cleanup [analyst assessment]; no signatures are provided [1].

Evidence gaps

  • The record's list of characters the sanitizer encodes appears incomplete in the pack, so the exact encoding behavior is Not established by the reviewed sources; the GitHub commits or advisory text would settle it.
  • The root cause is only partly described: the diff and implementation details are not in the pack, so the specific coding error is Not established by the reviewed sources.
  • The lower bound of the affected range for the 8.0 line is not stated; whether branches before 8.0 are affected is Not established by the reviewed sources. The vendor advisory GHSA-rq8q-p985-fjq7 or the release notes would settle it.
  • The NVD record is in Received status and the pack contains no NVD-assigned CVSS score, CPE configuration, or NVD analysis; these would settle the scoring and version details.
  • Exploitation evidence is absent from the pack beyond KEV not listing the CVE on 2026-11-12; public proof-of-concept status, threat actor attribution and EPSS score are Not established by the reviewed sources.
  • No indicators of compromise, log events or detection signatures are in the pack; the vendor advisory or incident reporting would be needed to provide any.
  • Upgrade prerequisites, migration steps and whether a restart is required after upgrading are not in the pack; the vendor release notes for 8.0.5.2 and 8.1.4.1 would settle these.
  • Which Rails helpers or templates in a given application reach striptags in attribute contexts depends on the application and cannot be established from the pack; a code review of the application would settle it.

References

  1. CVE-2026-126070 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-126070. Accessed 2026-11-12. CVE identity, record status and dates, description of the striptags flaw and its conditions (summarized), CWE-79 mapping, CVSS 3.1 base score 6.1 MEDIUM with vector and GitHub as secondary scorer, CNA-published affected ranges, fix versions 8.0.5.2 and 8.1.4.1, reference list including GHSA-rq8q-p98
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12. CISA KEV status: CVE-2026-126070 not listed as of 2026-11-12, and the note that this does not show the flaw has not been exploited.

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, strip_tags in Action View returns its sanitized output marked html_safe, but the underlying sanitizer encodes only &, , leaving " and ' unencoded. Because ERB does not escape a string marked html_safe, untrusted input passed through strip_tags and rendered inside a quoted HTML attribute value could close the attribute and add new attributes, possibly leading to XSS. Applications that render strip_tags output from untrusted input inside an HTML attribute, for example in a title attribute or a tag, are affected. Output rendered as element content is not affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.1 CVSS 3.1 base score from the CNA (github.com)

An attacker without an account can exploit this over the network if a user is tricked into an action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
yes, someone must click, open or visit something
Scope
reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
Impact
low on confidentiality and integrity, none on availability

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · CVSS 3.0 6.1 from GitHub: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected and fixed versions

ProductAffected versionsFixed in
actionview (RubyGems)≥ 8.1.0.beta1, < 8.1.4.18.1.4.1
< 8.0.5.28.0.5.2
rails< 8.0.5.2, >= 8.1, < 8.1.4.1—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

Affected

  • rails

Frequently asked questions

What is CVE-2026-126070?

CVE-2026-126070 is a cross-site scripting (XSS) weakness in the striptags helper of Action View, the view-rendering component of Ruby on Rails. The helper returns sanitized text marked as HTML-safe, but its sanitizer does not encode double and single quotes, so ERB output will not escape them. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).

How severe is CVE-2026-126070?

CVE-2026-126070 has a CVSS 3.1 base score of 6.1 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action.

Is CVE-2026-126070 being exploited?

Not as far as is known: CVE-2026-126070 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-126070?

actionview (RubyGems) ≥ 8.1.0.beta1, < 8.1.4.1 (fixed in 8.1.4.1); actionview (RubyGems) < 8.0.5.2 (fixed in 8.0.5.2); rails < 8.0.5.2, >= 8.1, < 8.1.4.1.

How do I fix CVE-2026-126070?

Search every Ruby application's views and helpers for striptags calls and record whether each output is placed inside an HTML attribute value [S1, analyst assessment]. For each attribute-context call site, replace striptags output with standard ERB escaping so quote characters are encoded, then confirm in the rendered page source with a test value that contains quotes [S1, analyst assessment]. Restrict write access to fields that feed striptags output into attributes to trusted roles until the upgrade is complete [analyst assessment].

Timeline & sources

References

Related vulnerabilities & news