Vulnerabilities in pkg:gem/text_helpers

PACKAGE
Advisory Identifier: GHSA-74hc-57m5-83ch
Advisory Summary

CVE-2020-36624 is a MODERATE (CVSS 6.1) text_helpers uses web link to vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Text helpers libraries in the RubyGems ecosystem. The issue involves text_helpers uses web link to untrusted target with window.opener access. Remediation is available by upgrading affected packages to version 1.2.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/text_helpers

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/text_helpers. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-74hc-57m5-83ch CVE-2020-36624 MODERATE text_helpers uses web link to untrusted target with window.opener access

CVE-2020-36624 at a Glance

CVE Identifier CVE-2020-36624
GHSA Identifier GHSA-74hc-57m5-83ch
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Text helpers
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-36624

To remediate this vulnerability, upgrade all affected Text helpers dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

text_helpers fixed: 1.2.0
Upgrade text_helpers to 1.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for text_helpers

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-36624, inspect your project dependencies for Text helpers:

inspect dependencies for text_helpers

Analyze the terminal output to locate any version of Text helpers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Text helpers, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in ahorner text-helpers 1.1.0/1.1.1. This vulnerability affects unknown code of the file lib/text_helpers/translation.rb. The manipulation of the argument link leads to use of web link to untrusted target with window.opener access. The attack can be initiated remotely. Upgrading to version 1.2.0 can address this issue. The name of the patch is 184b60ded0e43c985788582aca2d1e746f9405a3. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216520.

CVE-2020-36624 Affected Text helpers Versions

1 component(s)
Fixed Versions:
1.2.0
Product / Package Ecosystem Affected Versions Fixed Version
text_helpers
RubyGems
≥ 1.1.0
< 1.2.0
1.2.0

References

Frequently Asked Questions

What is CVE-2020-36624?
CVE-2020-36624 is a security vulnerability in Text helpers involving text_helpers uses web link to untrusted target with window.opener access under CWE-266: Incorrect Privilege Assignment.
Which Text helpers versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: text_helpers.
What version fixes CVE-2020-36624?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is text_helpers affected?
Yes, text_helpers is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of CVE-2020-36624?
CVE-2020-36624 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-36624?
CVE-2020-36624 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check RubyGems dependencies for CVE-2020-36624?
Run the dependency tree command: 'inspect dependencies for text_helpers'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-74hc-57m5-83ch",
  "modified" : "2022-12-29T19:23:01Z",
  "published" : "2022-12-22T12:30:17Z",
  "aliases" : [ "CVE-2020-36624" ],
  "summary" : "text_helpers uses web link to untrusted target with window.opener access",
  "details" : "A vulnerability was found in ahorner text-helpers 1.1.0/1.1.1. This vulnerability affects unknown code of the file lib/text_helpers/translation.rb. The manipulation of the argument link leads to use of web link to untrusted target with window.opener access. The attack can be initiated remotely. Upgrading to version 1.2.0 can address this issue. The name of the patch is 184b60ded0e43c985788582aca2d1e746f9405a3. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216520.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "text_helpers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-36624"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ahorner/text-helpers/pull/19"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ahorner/text-helpers/commit/184b60ded0e43c985788582aca2d1e746f9405a3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ahorner/text-helpers"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ahorner/text-helpers/releases/tag/v1.1.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ahorner/text-helpers/releases/tag/v1.2.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/text_helpers/CVE-2020-36624.yml"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.216520"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1022", "CWE-266" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-22T20:03:04Z",
    "nvd_published_at" : "2022-12-22T10:15:00Z"
  }
}