thekevinscott / UpscalerJS

Avoid target='_blank' attribute without rel='noopener noreferrer' JS-0422
Security
Major
8 months agoa year old
Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
47        <Input placeholder="Search images" size="small" onSlInput={event => handleChange((event.target as HTMLInputElement).value)}>
48          <Icon name="search" slot="suffix"></Icon>
49        </Input>
50        <small className={styles.info}>Images provided from <a target="_blank" href="https://pixabay.com">pixabay</a></small>51      </div>
52      <Images searchValue={searchValue} selectImage={selectImage} />
53    </div>
Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
58        </Input>
59        {expanded && (
60          <>
61          <small className={styles.info}>Images provided from <a target="_blank" href="https://pixabay.com">pixabay</a></small>62          <Images searchValue={searchValue} selectImage={selectImage} />
63          </>
64        )}
Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations
 96              DATASETS.map(option => (
 97                <MenuItem key={option} value={option} type="checkbox" checked={datasets.includes(option)}>
 98                    {option}
 99                    <a 100                      className={styles.optionLink} 101                      target="_blank" 102                      href={getLinkForDataset(option)}103                    >104                      <BiLinkExternal />
105                    </a>
106                  </MenuItem>