Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-13146

The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-13146
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:34 UTC · Revision 1

Source evidence

CVE-2019-13146

core-osv · Original source

Published 9 Jul 2019, 18:15 UTC

The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).

osv:CVE-2019-13146
Complete source record
{
  "id": "fd96e2614669a12e7b879206004950ae4652d08e102af7cb2bb56ad4cdbd40d1",
  "url": "https://osv.dev/vulnerability/CVE-2019-13146",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-13146",
    "summary": "The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).",
    "evidence": "osv:CVE-2019-13146",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-13146",
      "aliases": [
        "CVE-2019-13146",
        "GHSA-wg9m-gw3h-hg83"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ankane/field_test",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9effff8e673bf3a645308807d91a26e6ac8c6f91"
                },
                {
                  "last_affected": "9effff8e673bf3a645308807d91a26e6ac8c6f91"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:field_test_project:field_test:0.3.0:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "0.3.0"
                      },
                      {
                        "last_affected": "0.3.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.3.0",
            "v0.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-13146.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:41.837725369Z",
      "provider": "osv",
      "references": [
        "https://rubygems.org/gems/field_test",
        "https://github.com/ankane/field_test/issues/17"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-13146",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382014,
  "published_at": "2019-07-09T18:15:11.513+00:00"
}