
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
A straightforward(!) UK State Retirement Age calculation library that we thought might be useful for someone out there.
$ npm install sra
Simply invoke the exported function passing it
and get back an object with properties:
Example:
var sra = require('sra');
var dob = new Date('1959-02-20');
var gender = 'male';
var result = sra(dob, gender);
var d = result.date
// 2025-02-20
var a = result.age
var retirementAge = a[0]" years "+a[1]+" months "+a[2]+" days"
// 66 years 0 months 0 days
This module is based on HM Government State Pension Age timetable published by the Department for Work and Pensions update 15 May 2014 under the Open Government Licence v3.0.
The timetable is complicated because the government is both trying to unify retirement ages for men and women and also extend retirement age for both. The timetable is broken into specific tables applicable to different birth dates as follows:
Women
| < 6/4/1950 | 60th birthday |
| 6/4/1950 - 5/12/1953 | specified in table 1 and 2 |
Men
| < 6/12/1953 | 65th birthday |
Men and Women
| 6/12/1953 - 5/10/1954 | specified in table 3 |
| 6/10/1954 - 5/4/1960 | 66th birthday |
| 6/4/1960 - 5/3/1961 | specified in table 4 |
| 6/3/1961 - 5/4/1977 | 67th birthday |
| 6/4/1977 - 5/4/1978 | specified in table 5 |
| > 5/4/1978 | 68th birthday |
Steve Carter (ported from a previous implementation by Alttaf Hussain)
This software is made available under the MIT license.
FAQs
UK State Pension/Retirement Age calculation module
We found that sra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.